On Wed, Dec 23, 2009 at 2:37 AM, <[email protected]> wrote: > > Daire Byrne: >> Actually even with the ".wh..wh..opq" files in every dir of a tree, >> there are still a lot of NFS calls happening. There are still the >> readdir calls and lots of access calls on the dirs to get the perms. I >> suppose I still need the dirperm1 option to completely eradicate >> these. I thought the opaque files would essentially disable the union >> for that dir but actually if I create a new file in the lower (NFS) >> branch I can see it in the aufs union even though there is a >> ".wh..wh..opq" in the top branch for that dir. Probably the opaque >> stuff isn't working at all for me? > > The ".wh..wh..opq" is to hide lowers. > You should create it in the upper branch fs.
That is what I did - something must be not working for me. e.g. # mkdir /tmp/dir1 /tmp/dir2 /tmp/aufs # touch /tmp/dir1/file1 /tmp/dir2/file2 /tmp/dir1/.wh..wh..opq # mount -t aufs -o br=/tmp/dir1:/tmp/dir2 aufs /tmp/aufs # ls -ahl /tmp/aufs/ total 8.0K drwxr-xr-x 6 root root 4.0K 2009-12-23 10:41 . drwxrwxrwt 14 root root 4.0K 2009-12-23 10:39 .. -rw-r--r-- 1 root root 0 2009-12-23 10:41 file1 -rw-r--r-- 1 root root 0 2009-12-23 10:41 file2 Unless I'm doing something wrong I shouldn't see "file2" right? Does this test work for you? Daire ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
