Comment 3 for bug 729338

Revision history for this message
Daniel (hackie) wrote :

Same problem here. Use this script to reproduce

----script:
testuser=set-a-valid-non-root-user
mkdir d1/
mkdir d1/x/
echo "This is a samefile-test" >d1/x/file.txt
chown $testuser: d1/x/ d1/x/*
mksquashfs d1/ testdata_L1.squashfs -noappend
mkdir L1root
mount -t squashfs -oloop ./testdata_L1.squashfs L1root/
mkdir L2top
mkdir aufs
mount -t aufs -odirs=L2top=rw:L1root=ro,sum none aufs/
su $testuser -c "rm --interactive=none /tmp/aufstest/aufs/x/file.txt" ; echo $?
dmesg | tail
----find L*/ aufs/ -ls after mounting
     2 0 drwxr-xr-x 3 root root 24 Okt 12 23:44 L1root/
     1 0 drwxr-xr-x 2 daniel daniel 31 Okt 12 23:44 L1root/x
     3 1 -rw-r--r-- 1 daniel daniel 24 Okt 12 23:44 L1root/x/file.txt
696501 4 drwxr-xr-x 4 root root 4096 Okt 12 23:44 L2top/
696504 4 drwx------ 2 root root 4096 Okt 12 23:44 L2top/.wh..wh.orph
696503 4 drwx------ 2 root root 4096 Okt 12 23:44 L2top/.wh..wh.plnk
656502 0 -r--r--r-- 1 root root 0 Okt 12 23:44 L2top/.wh..wh.aufs
     2 4 drwxr-xr-x 5 root root 4096 Okt 12 23:44 aufs/
    12 0 drwxr-xr-x 2 daniel daniel 31 Okt 12 23:44 aufs/x
    13 1 -rw-r--r-- 1 daniel daniel 24 Okt 12 23:44 aufs/x/file.txt
----

using both self-compiled aufs 2.2-standalone.tree-38-20110919 and default aufs.ko from 2.6.38-11-generic (natty)