xfs
[Top] [All Lists]

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

To: "xfs-oss" <xfs@xxxxxxxxxxx>
Subject: Empty dir can't be removed ... because it's not empty?
From: Rafa Grimán <rafagriman@xxxxxxxxx>
Date: Tue, 10 Jan 2012 21:26:35 +0100
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=9ejUtDtkQMGCDH1TyitgS2rDJ+zvkFXhZgpBQjP7Qic=; b=e40VlAplzNo/WIQB8oAoHBqFLwzxfBZeAp6V2y06k5zi4RofUXJIYI0vLXC4cYb9z8 DvwMncmw/r6xPR9WRJEJmDxbKhZeT8aC9pHHclFTvcckE7+BMeaUBF+BzhnIyCUNE4w+ KKg5RV1HW3Y4iDO+X3bbn9h8ZHKqyo4f7mp24=
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.9-desktop; KDE/4.6.0; i686; ; )
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@mine albumcovers]# ls
.  ..  cache

[root@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@mine albumcovers]# du -sh cache/
0       cache/

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

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

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

[root@mine albumcovers]# mv cache other_dir_name

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

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

[root@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@mine albumcovers]# du -sh other_dir_name/
0       other_dir_name/

[root@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."

<Prev in Thread] Current Thread [Next in Thread>