Hello Soren,

S?ren Rasmussen:
> I have an aufs mount mounted on top of the ro directory like this:
> # mount -t aufs -o airs=./rwdir=rw:./rodir=ro none ./rodir
> I want to exclude a file "exfile" in ./rodir from aufs, so changes get 
> written directly to the ro-branch, not ./rwdir.
> I have tried bind mounting in several different ways (both before and 
> after the mount command above):
> 1):
> # touch ./rwdir/exfile
> # mount -B ./rodir/exfile ./rwdir/exfile
> 2):
> # mount -B ./rodir/exfile ./rodir/exfile

I guess it was just because the mount point is same to the RO branch
(./rodir).
You need to run "mount -B" _after_ mounting aufs, but you cannot refer
to the RO branch "rodir" directly anymore. It is covered by aufs
"rodir".
Try something like this (I didn't try by myself though).
# mount -t aufs -o airs=./rwdir=rw:./rodir=ro none ./rodir.tmp
# mount -B ./rodir/exfile ./rodir.tmp/exfile
# mount -M ./rodir.tmp ./rodir


J. R. Okajima

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

Reply via email to