Re: Strange "rm -fr" issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you are able to reproduce this issue (extract the same tree and then
try "rm -fr" again) please run this under strace to see how many entries are returned during readdir from the kernel.

It could be a bug in the ext4 readdir code or it could be a bug in glibc or coreutils. 

Cheers, Andreas

> On Dec 29, 2013, at 7:24, Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx> wrote:
> 
> I came across the following strange issue today:
> 
> markus@x4 tmp % rm -fr boost
> rm: cannot remove ‘boost/results/boost/bin.v2/libs’: Directory not empty
> markus@x4 tmp % ll boost/results/boost/bin.v2/libs
> total 68K
> drwxr-xr-x 17 markus markus 4.0K Dec 29 15:01 .
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 ..
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 move
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 mpl
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 msm
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_array
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_index
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 multiprecision
> drwxr-xr-x  6 markus markus 4.0K Dec 29 15:01 numeric
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 optional
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 parameter
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 phoenix
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 polygon
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 pool
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 python
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 serialization
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 test
> markus@x4 tmp % ll boost/results/boost/bin.v2/libs
> total 140K
> drwxr-xr-x 35 markus markus 4.0K Dec 29 15:01 .
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 ..
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 config
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 move
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 mpl
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 msm
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_array
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 multi_index
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:00 multiprecision
> drwxr-xr-x  6 markus markus 4.0K Dec 29 15:01 numeric
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 optional
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 parameter
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 phoenix
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 polygon
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 pool
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 predef
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 preprocessor
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 program_options
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 property_map
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 property_tree
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 proto
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 ptr_container
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 python
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 random
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 range
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 ratio
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 rational
> drwxr-xr-x  5 markus markus 4.0K Dec 29 15:01 regex
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 scope_exit
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 serialization
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 signals
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 signals2
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 smart_ptr
> drwxr-xr-x  4 markus markus 4.0K Dec 29 15:01 spirit
> drwxr-xr-x  3 markus markus 4.0K Dec 29 15:01 test
> markus@x4 tmp % rm -fr boost
> markus@x4 tmp % ll boost/results/boost/bin.v2/libs
> ls: cannot access boost/results/boost/bin.v2/libs: No such file or directory
> markus@x4 tmp %
> 
> fsck.ext4 shows nothing. Kernel is latest git. coreutils-8.22.
> /dev/sda       ext4      1.8T  743G  1.1T  41% /var
> /dev/sda on /var type ext4 (rw,relatime,data=ordered)
> 
> -- 
> Markus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux