Empty dir can't be removed ... because it's not empty?

Rafa Grimán rafagriman at gmail.com
Tue Jan 10 14:26:35 CST 2012


Hi all :)

My /home is on an XFS partition all to it's own. The other day the lights went 
out and when I rebooted, there's an empty directory that can't be erased. This 
directory is a subdirectory in ~/.kde4/

The funny thing about this is that I can rename the directory, but I can't 
delete it:

[root at mine albumcovers]# ls
.  ..  cache

[root at mine albumcovers]# ls -lah cache/
total 0
drwx------ 1 rafa users  6 Jan 10 02:23 .
drwx------ 3 rafa users 18 Jan 10 02:23 ..

[root at mine albumcovers]# du -sh cache/
0       cache/

[root at mine albumcovers]# mount | grep -i home
/dev/sda3 on /home type xfs (rw,relatime,attr2,delaylog,noquota)

[root at mine albumcovers]# file cache/
cache/: directory

[root at mine albumcovers]# rm -Rf cache/
rm: cannot remove `cache': Directory not empty

[root at mine albumcovers]# mv cache other_dir_name

[root at mine albumcovers]# ls
.  ..  other_dir_name

[root at mine albumcovers]# rm -Rf other_dir_name/
rm: cannot remove `other_dir_name': Directory not empty

[root at mine albumcovers]# ls -lah other_dir_name/
total 0
drwx------ 1 rafa users  6 Jan 10 02:23 .
drwx------ 3 rafa users 27 Jan 10 21:14 ..

[root at mine albumcovers]# du -sh other_dir_name/
0       other_dir_name/

[root at mine albumcovers]#



Kernel version: 3.1.8-1-ARCH (Arch Linux)

XFS: xfsprogs 3.1.7-1



Any idea of what's going on?
Any tool I can use to understand what's happening?

TIA

   Rafa

-- 
"We cannot treat computers as Humans. Computers need love."




More information about the xfs mailing list