Hi, Michael Towers: > What I want to do is rebuild the layer2 squashfs with layer1 merged in, > retaining all relevant whiteouts. I can of course do this by copying > everything to a new directory and resquashing. But it seems to me it > would be much easier (and I suppose much quicker, as well as > space-saving) if there was a new aufs mount option which made the > (non-covered) whiteouts visible.
Visible whiteouts? Sounds like philosophy. :-) I don't think it is a good idea introducing a new option. If you can,,, - modify AUFS_WH_PFX in include/linux/aufs_type.h - build another aufs module named 'visible-whiteout' for instance, you may need to modify some other symbols in order to stop conflicing with the symbols in original aufs. - mount layer1=ro+wh:layer2=ro+wh as 'visible-whiteout' filesystem-type then you will get what you want, I guess. But, in squashfs world, it is easier to execute mksquashfs and append the contents of layer1 to the layer2 image. Junjiro Okajima ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/