xfs_protofile(8)
π NAME π
okay so the whole point of xfs_protofile is to create a protofile for use with mkfs.xfs π§ it's literally the tool that builds the blueprint so you don't have to type it all out yourself π
π SYNOPSIS π
xfs_protofile path [ paths... ]
xfs_protofile -V
β¨ DESCRIPTION β¨
bestie, xfs_protofile walks through a directory tree and generates a protofile for you πΈ the protofile format is explained over in the mkfs.xfs(8) manual page, and it's derived from 3rd edition Unix π¦ very old-school, very iconic π
π OPTIONS π
pathβ this is the main character π it tellsxfs_protofilewhich path to copy into the root directory. if the path is a directory, you'll get protofile directives that replicate the entire subtree as a subtree of the root directory π³ if the path is not a directory, you'll get directives that create that file as an entry in the root directory π just remember the first path has to resolve to a directory, no exceptions π
π¨ BUGS π¨
β οΈ okay, real talk, bestie: filenames cannot contain spaces π and extended attributes are not copied into the filesystem π keep these in mind or your protofile will be lowkey cursed π«Ά
Signing off with love from xfs_protofile(8) ππ§β¨
π¦ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: xfsprogs-doc 7.0.1-r0 Β· LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 Β· GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: xfsprogs 6.16.0-1.el10 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- debian trixie: xfsprogs 6.13.0-2+deb13u1 Β· GPL-2.0-only
- fedora 43: xfsprogs-xfs_extras 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-xfs_extras 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs-xfs_extras 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: xfsprogs 6.19.0
- nixpkgs unstable: xfsprogs 7.2.1
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- ubuntu questing: xfsprogs 6.13.0-2ubuntu2 Β· GPL-2.0-only
- ubuntu resolute: xfsprogs 6.18.0-3 Β· GPL-2.0-only
- ubuntu stonking: xfsprogs 6.19.0-1 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms