Hello,

I'm using aufs on RHEL 5, the aufs directory is exported via NFS to a
NFS RHEL 4 Update client.

I wrote a script (Cf. end of mail) creating 16384 files in a dummy
directory (aufs directory), named "dummy.3312", without problem.

#1 round)
But when I try to delete the directory 'rm -fr dummy.3312', I got the
following message :
rm: cannot remove directory `dummy.3312/': Directory not empty
If I count the non deleted files inside the directory 'ls dummy.3312| wc
-l' I got 8189 files.

#2 round)
I do the 'rm -fr dummy.3312' command one more time : rm: cannot remove
directory `dummy.3312/': Directory not empty
I count the non deleted files inside the directory 'ls dummy.3312| wc
-l' I got 4090 files.

#3 round)
I do the 'rm -fr dummy.3312' command one more time : rm: cannot remove
directory `dummy.3312/': Directory not empty
I count the non deleted files inside the directory 'ls dummy.3312| wc
-l' I got 2044 files.

#4 round)
I do the 'rm -fr dummy.3312' command one more time : rm: cannot remove
directory `dummy.3312/': Directory not empty
I count the non deleted files inside the directory 'ls dummy.3312| wc
-l' I got 1010 files.

#5 round)
OK, directory removed.

It seems that each round deletes only the half of number files.

If I do the same on standard NFS directory, no problem : all files and
directory are removed at #1 round.

Thanks

Technical information
* aufs is 20070618
* aufs compiled with CONFIG_AUFS_EXPORT =y
* aufs/fs/aufs/cpup.h changed :
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
* /etc/exports :
/diskless/exports/node2
192.168.11.2(rw,async,wdelay,no_root_squash,fsid=123456)
* NFS server : RHEL 5, kernel 2.6.18-8.el5
* NFS client : RHEL 4 Update 4, kernel 2.6.9-42.ELsmp
* output of cat /proc/mounts (aufs part) on NFS Server
none /diskless/exports/node2 aufs
rw,xino=/diskless/cow/node2/.aufs.xino,br:/diskless/cow/node2=rw:/diskless/layers/pm_rhel4=ro:/diskless/layers/mrhel4=ro
 0 0
* 

===== file_creation.sh ====
#!/bin/sh

typeset -i i=0

while [ ${i} -lt 16384 ]
do
        echo ${RANDOM} > ${RANDOM}_${i}
        i=i+1
done
===== End of file_creation.sh ====


-- 
Philippe Malinge


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Reply via email to