Hello, I am using aufs3-standalone.git with kernel 3.5.3 (self-compiled) and was trying to use a directory as overlay, which contains subdirectories binded to other directories (mount --bind). It seems like aufs does not care about this situation and just shows an empty subdirectory. To reconstruct this problem you can use the following commands:
-------------------------------- mkdir data touch data/test # mkdir fsroot fsroot/data fsoverlay mount --bind data fsroot/data # mkdir final mount -t aufs -o br=fsoverlay:fsroot none final # ls -al final/data fsroot/data -------------------------------- I would expect that final/data contains a file called "test", but the result shows that final/data/test does not exist (in contrast to this fsroot/data/test does exist). When using "mount --bind data fsroot" (and not a subdirectory of fsroot) this problem does not occur. Here are some more details about the configuration: --- Aufs version --- aufs 3.5-20120827 --- Configuration --- CONFIG_AUFS_FS=y CONFIG_AUFS_BRANCH_MAX_127=y # CONFIG_AUFS_BRANCH_MAX_511 is not set # CONFIG_AUFS_BRANCH_MAX_1023 is not set # CONFIG_AUFS_BRANCH_MAX_32767 is not set CONFIG_AUFS_SBILIST=y # CONFIG_AUFS_HNOTIFY is not set # CONFIG_AUFS_EXPORT is not set # CONFIG_AUFS_RDU is not set CONFIG_AUFS_PROC_MAP=y # CONFIG_AUFS_SP_IATTR is not set # CONFIG_AUFS_SHWH is not set # CONFIG_AUFS_BR_RAMFS is not set # CONFIG_AUFS_BR_FUSE is not set CONFIG_AUFS_BR_HFSPLUS=y CONFIG_AUFS_BDEV_LOOP=y --- /proc/mounts --- /dev/disk/by-uuid/... /root/test-aufs/fsroot/data ext4 rw,relatime,errors=remount-ro,data=ordered 0 0 none /root/test-aufs/final aufs rw,relatime,si=7a4dc6a37290a853 0 --- cat /sys/fs/aufs/si_7a4dc6a37290a853/* --- /root/test-aufs/fsoverlay=rw /root/test-aufs/fsroot=ro /root/test-aufs/fsoverlay/.aufs.xino Michael ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/