[lkml]   [2005]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [2.6.12] XFS: Undeletable directory
On Sun, Jun 19, 2005 at 07:04:49PM +0200, Jan De Luyck wrote:
> Hello lists,
> I've had some XFS troubles today, and after cleaning up with xfs_repair and so
> I'm stuck with one undeletable directory in /lost+found:
> precious:/lost+found# ls -l
> total 8
> drwxrwxrwx 2 root root 8192 Jun 19 2005 4207214
> precious:/lost+found# rm -r 4207214
> rm: cannot remove directory `4207214': Directory not empty
> precious:/lost+found# ls -l 4207214/
> total 0
> precious:/lost+found#
> So there's one dir 4207214 there, and i can rename it and whatever, just not
> remove it.
> xfs_repair didn't solve the problem.
> Any ideas?

What does: xfs_db -r -c 'inode 4207214' -c print /dev/XXX

I have seen a similar thing once before, awhile back, where the
directory inode was "empty" (only . and ..) and hence should've
been in shortform, but other fields indicated the inode was in
extent form still. Never got to the bottom of it... I'd guess
there's somehow a case where the kernel XFS code can miss this
transformation - not sure where/how though.

If it comes to it, you can always zero out individual inode fields
for that inode in xfs_db (with -x option to enable write mode) and
then xfs_repair should be able to get past it.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-06-20 09:14    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean