Hello Alex, "Wilkinson, Alex": > I have created a union mount as such: > > #mount -t aufs -o br=/mnt/foo:/mnt/bar none /mnt/aufs > > This works perfectly well. However there are a number of directories and files > under /mnt/aufs that i would like to 'hide'. Is this possible ? > > Essentially I want to hide various subdirectories that are being exported via > my > NFS mounts.
There are several ways to do that. (generic) $ mkdir /tmp/empty # mount -o bind /tmp/empty /mnt/aufs/you/want/to/hide (aufs specific) $ mkdir /tmp/empty $ cd /tmp/empty $ > .wh..wh.base $ mkdir you/want/to $ ln .wh..wh.base you/want/to/.wh..wh.hide # mount -o remount,prepend:/tmp/empty=ro+wh /mnt/aufs J. R. Okajima ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com