TARFS(4)

πŸ“¦ version 15.1, in freebsd 15.1, nixpkgs unstable

πŸ’… TARFS(4) β€” tarball filesystem ✨

okay bestie, welcome to the TARFS(4) page from the Kernel Interfaces Manual. It’s giving tarball filesystem realness, and I’m gonna walk you through it. no cap.

✨ NAME ✨

  • tarfs β€” tarball filesystem πŸŽ€

🌸 SYNOPSIS 🌸

To compile this driver into the kernel, place the following line in your kernel configuration file:

options TARFS

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

tarfs_load="YES"

πŸ¦‹ DESCRIPTION πŸ¦‹

The tarfs driver implements a read-only filesystem backed by a tar(5) file. Currently, only POSIX archives, optionally compressed with zstd(1), are supported.

The preferred I/O size for tarfs filesystems can be adjusted using the vfs.tarfs.ioshift sysctl setting and tunable. Setting it to 0 will reset it to its default value. Note that changes to this setting only apply to filesystems mounted after the change β€” so if you want the new size, mount after you change it, iykyk.

When the backing tar file is compressed with zstd(1), I/O performance can be improved by ensuring that compressed data is broken up into multiple frames. This helps minimize unnecessary decompression work. When using bsdtar(1) to create the tar file, this can be achieved using the zstd:max-frame-size and zstd:frame-per-file options. Sensible frame sizes are powers of 2 between the system’s base page size (see arch(7)) and the value of the kern.maxphys sysctl. Smaller frames will generally yield a worse compression ratio and require extra kernel memory to maintain an index, and larger frames will on average require more CPU time to access data when performing random I/O. so it’s a tradeoff, bestie β€” not every frame size is gonna slay equally πŸ’…

πŸ”₯ DIAGNOSTICS πŸ”₯

If enabled by the TARFS_DEBUG kernel option, the vfs.tarfs.debug sysctl setting can be used to control debugging output from the tarfs driver. Debugging output for individual sections of the driver can be enabled by adding together the relevant values from the table below β€” yes, literally add them together, math girlie:

  • 0x01 β€” Memory allocations
  • 0x02 β€” Checksum calculations
  • 0x04 β€” Filesystem operations (vfsops)
  • 0x08 β€” Path lookups
  • 0x10 β€” File operations (vnops)
  • 0x20 β€” General I/O
  • 0x40 β€” Decompression
  • 0x80 β€” Decompression index
  • 0x100 β€” Sparse file mapping
  • 0x200 β€” Bounce buffer usage

🌈 SEE ALSO 🌈

go be nosy, bestie:

πŸ‘‘ HISTORY πŸ‘‘

The tarfs driver was developed by Stephen J. Kiernan <stevek@FreeBSD.org> and Dag-Erling SmΓΈrgrav <des@FreeBSD.org> for Juniper Networks and Klara Systems. This manual page was written by Dag-Erling SmΓΈrgrav <des@FreeBSD.org> for Juniper Networks and Klara Systems.

xoxo, this page comes from Debian, it’s dated February 14, 2023, and it’s the TARFS(4) manual page πŸ’–βœ¨

πŸ“¦ where this page comes from