LWN: Comments on "Unionfs" https://lwn.net/Articles/217084/ This is a special feed containing comments posted to the individual LWN article titled "Unionfs". en-us Sat, 20 Sep 2025 08:06:59 +0000 Sat, 20 Sep 2025 08:06:59 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Unionfs https://lwn.net/Articles/266693/ https://lwn.net/Articles/266693/ TomasM <div class="FormattedComment"><pre> Well, aufs is a great replacement for unionfs. That particular code should be in kernel IMHO, as it's working much better. It is documented in aufs.5 man page: <a rel="nofollow" href="http://aufs.sf.net/aufs.html">http://aufs.sf.net/aufs.html</a> Knoppix switched to AUFS already, all linux-live based distributions including Slax are switching to AUFS as well. Junjiro Okajima (AUFS author) sadly doesn't wish to submit the code to kernel yet, while unionfs developers try very hard to get it inthere, have no idea why is that so important for them. The inclusion won't make unionfs code better. If you review the unionfs versus aufs development process, AUFS adds cool features (like balancing of writable branches), while unionfs fixes locking, mmap code, NULL pointer dereferences, and so on. .. </pre></div> Sun, 27 Jan 2008 15:00:39 +0000 Unionfs https://lwn.net/Articles/217513/ https://lwn.net/Articles/217513/ JohnNilsson Is this an application that would benefit from this <br> Zipper-based file server/OS thing I saw the other day?<br> <p> <a href="http://okmij.org/ftp/Computation/Continuations.html#zipper-fs">http://okmij.org/ftp/Computation/Continuations.html#zippe...</a><br> <p> From my limited understanding it's a copy on write based way to make an immutable data structure mutable which kind of sounds similar to some of the goals of unionsf.<br> Mon, 15 Jan 2007 14:02:18 +0000 Unionfs https://lwn.net/Articles/217421/ https://lwn.net/Articles/217421/ PlaguedByPenguins for clusters, the 'no writes to underlying layers' thing is a killer - it means you can't upgrade the read-only part of the OS. it would be great if unionfs would recognise when VFS caches were trashed.<br> in the mean time, I've found <a href="http://www.onesis.org/">oneSIS</a> is a simple and effective way to diskless boot clusters. <p> cheers,<br> robin Sat, 13 Jan 2007 15:14:25 +0000 Unionfs https://lwn.net/Articles/217410/ https://lwn.net/Articles/217410/ aakef Hi dambacher,<br> <p> we are just trying to use funionfs (also fuse based) as diskless setup. In principle it already works, but I found one critical bug, see here<br> <p> <a href="http://www.fsl.cs.sunysb.edu/pipermail/unionfs/2007-January/005006.html">http://www.fsl.cs.sunysb.edu/pipermail/unionfs/2007-Janua...</a><br> <p> I looked into the sources of unionfs-fuse and I think it will have the very same access() problem.<br> <p> All I need is a good idea how to fix it. Since everything is done in userspace, the source code is rather simple.<br> <p> If you need some help to setup your diskless setup, just contact me.<br> <p> Cheers,<br> Bernd<br> Sat, 13 Jan 2007 11:29:20 +0000 Unionfs https://lwn.net/Articles/217402/ https://lwn.net/Articles/217402/ raven667 <p><em>You cannot oops the kernel by writing to /dev/hda1 while an ext3 filesystem on /dev/ hda1 is mounted. You can trash unlimited amounts of data, but as the filesystem is external to the kernel, the kernel is robust to whatever bits it might read from it at any time.</em></p> <p>That seems like how it <strong>should</strong> be but I doubt that this is true. In fact I believe one of the major fixes in 2.6.19.2 is CVE-2006-5823 a problem where a corrupte cramfs could OOPS the kernel. This same kind of think can, has and will continue to happen in the filesystem, USB, network, Firewire, block device and other subsystems where bogus data from a piece of hardware isn't sufficiently checked before being used and causes an OOPS (with potential security implications.</p> Sat, 13 Jan 2007 04:52:17 +0000 Unionfs https://lwn.net/Articles/217394/ https://lwn.net/Articles/217394/ giraffedata <blockquote> later messages in the thread indicate that the warning is (somewhat) intentionally overstating the risk of an oops </blockquote> <p> Do you mean the warning is a lie and it is not in fact possible by design to oops the kernel by modifying an underlying filesystem? <p>Because that's the only way it's sensible. You cannot oops the kernel by writing to /dev/hda1 while an ext3 filesystem on /dev/hda1 is mounted. You can trash unlimited amounts of data, but as the filesystem is external to the kernel, the kernel is robust to whatever bits it might read from it at any time. Sat, 13 Jan 2007 00:33:44 +0000 Unionfs https://lwn.net/Articles/217296/ https://lwn.net/Articles/217296/ dambacher some days ago I searched for unionfs and lookalikes to set up a diskless boot and wondered.<br> there is more than just unionfs:<br> unionfs-FUSE is based on unionfs with some interesting features<br> aufs is a new implementation of uionfs. knoppix just switched from unionfs to this one.<br> <p> none is in kernel but FUSE annd unionfs-FUSE runs in userspace.<br> none has good documentation .-(<br> special tricks like root mounting are not documented.<br> <p> <p> Thu, 11 Jan 2007 22:14:16 +0000 You could also update the DVD https://lwn.net/Articles/217202/ https://lwn.net/Articles/217202/ mcmechanjw While it is true that unionfs is a nice way to provide updates to a DVD growisofs provides for adding files to a already written DVD+/-R/RW/RAM directly via the -M option until it is full or the disk is closed<br> As a example a script I use looks like this - most of which is concerned with updating the md5sum file, and then checking the md5sum of the files on the dvd.<br> <p> mount /mnt/dvd<br> cat /mnt/dvd/md5sum &gt;&gt;md5sum<br> find $FILES -type f -print0 | xargs -0 md5sum &gt;&gt;md5sum<br> umount /mnt/dvd<br> ulimit -l unlimited<br> growisofs -M /dev/dvd -r $FILES md5sum<br> mount /mnt/dvd<br> (cd /mnt/dvd;md5sum -c md5sum)<br> Thu, 11 Jan 2007 16:19:47 +0000 Unionfs https://lwn.net/Articles/217158/ https://lwn.net/Articles/217158/ nix unionfs also stops unioning at mount points, which is really annoying and makes it unusable for a lot of purposes. e.g. a lot of the path-translation stuff in fakeroot could be avoided (and robustness improved) if you could union-mount the fakeroot directory over / before running the fakerooted command, so the changes that `make install' or whatever did landed in the fakerooted directory, but it normally saw the original /. But this doesn't work because of the mount-point-traversal problem.<br> <p> (Oh, and also the corruption thing as well, of course: it's kind of annoying to avoid writing to /-and-all-subdirectories while fakeroot is running :) ).<br> Thu, 11 Jan 2007 11:33:41 +0000 Unionfs https://lwn.net/Articles/217141/ https://lwn.net/Articles/217141/ dlang writing to the underlying filesystem is conceptually the same as writing to /dev/hda1 while you have it mounted.<br> <p> in both cases the filesystem on top doesn't know about the changes below it and can be (fatally) surprised when it finds them.<br> <p> later messages in the thread indicate that the warning is (somewhat) intentially overstateing the risk of an oops (rather then going into many pages of quickly obsolete details of what will fail)<br> <p> I suspect that you get away with it by the fact that you are doing read-only on the result.<br> Thu, 11 Jan 2007 09:50:20 +0000 Unionfs https://lwn.net/Articles/217140/ https://lwn.net/Articles/217140/ smurf Ubuntu has been shipping their kernels with unionfs (and squashfs) for a year now, in order to support live CDs properly.<br> <p> In that case, modifying unionfs parts from behind the scenes is Not A Problem because the r/w branch is hidden by the clever way the initramfs sets up the file system structure -- the unionfs is mounted at /root, and then /root is move-mounted on top of /.<br> <p> But I can certainly attest to its fragility in the general case -- trying to restore an unionfs filesystem by simply pulling the r/w part from a disk dump does cause a crash pretty much immediately afterwards: unionfs sees some cached directory entries which do not have its data structure attached, and BUG()s out.<br> Thu, 11 Jan 2007 09:45:32 +0000 Unionfs https://lwn.net/Articles/217134/ https://lwn.net/Articles/217134/ k8to Huh, I modify the contents of a branch out from under a union mount just about every day. In fact, that's the only way I ever modify it.<br> <p> I have yet to see a single oops or data loss problem.<br> <p> Surely there must be more to triggering this problem.<br> Thu, 11 Jan 2007 08:07:33 +0000