FUNIONFS(8)
π¦ NAME π¦
funionfs β user-space directory concatenation. That's it, that's the vibe, and it's from the FUNIONFS(8) manual page, bestie. π«Ά
πΈ SYNOPSIS πΈ
funionfs upper_dir mountpoint [ option ] ...
β¨ OPTIONS β¨
-o opt,[opt...]β mount options, the classic-h,--helpβ print help, aka the "what does this do again" button π-V,--versionβ print version, for when you need receipts
π Mount options include:
funionfs_debugβ print some debugging information, slay for when things are acting updirs=LISTβ a colon separated list of directories π/branch1=rwβ a directory in a read-write mode/branch1β if no permission is specified, the branch is in a read-write mode/branch2=roβ a directory in a read-only mode
copyupuid=Nβ uid of the copied-up files (no default)copyupgid=Nβ gid of the copied-up files (no default)copyupmode=Nβ mode of the copied-up files (no default)del_string=Nβ string to mark a deleted file (default:_DELETED~)delete=TYPEβ specifies how funionfs deletes and renamesall(default) β delete all objects in read-write branch (default) and add a whiteout file if objects exists in read-only branches.whiteoutβ only add a whiteout file in upper (rw) branch or delete file in upper branch.
copyup=TYPEβ specifies how to manage attributespreserveβ preserve uid, gid and mode of object (default)currentuserβ the object owns to the user doing the operationmounterβ the object owns to the mounter
β οΈ Heads up bestie: there is no implementation of-o deleteand-o copyupfor now. Not me warning you before you go looking for a feature that isn't there π
You could use the mount command instead π :
mount -t fuse funionfs#/upper_dir mountpoint [ options ]
If you want to name all directories in -o dirs=, then pass "none" as upper_dir. iykyk
π«Ά DESCRIPTION π«Ά
funionfs concatenates directories mentioned in options (and upper_dir) to mountpoint. Also, although some (but not all) of the directories are read-only, you still can write in resulting mounted directory. main character energy honestly
For example, if you have files a/a and b/b and mount mountpoint r with -o dirs=a=ro:b=ro:w=rw, then you will see files r/a and r/b. You will be able to write to them, and original files will remain intact (changes will go to w). π¦
Note that it is impossible to have file with name ending by del_string value, if you create r/a_DELETED~ in mentioned example, it will dissapear together with a. literally gone, no cap π
π SEE ALSO π
The source.. β¨
π BUGS π
You cannot mount an overlay on / (the program that list the content of / will hang). This is probably due to a loop call of the fuse driver. There is no known solution for now. fr fr do NOT try this one π
Probably minor (or major) mistakes in not-so-frequent cases.
Not enough tested. π
Okay that's the whole page bestie, you're officially funionfs-literate, periodt. π
This cutie right here is from FUNIONFS(8), dated 15 June 2006 β that's the source, the version tag, and the date all in one, so you know exactly what era of Unix you're getting into. π β¨ π¦
π¦ where this page comes from
- fedora 43: funionfs 0.4.3-38.fc43 Β· GPL-2.0-or-later
- fedora 44: funionfs 0.4.3-39.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms