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 tells xfs_protofile which 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) πŸ’œπŸ§šβœ¨