xfs
[Top] [All Lists]

Re: can't remove dir

To: "Louis-David Mitterrand" <vindex+lists-xfs@xxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Subject: Re: can't remove dir
From: "Barry Naujok" <bnaujok@xxxxxxx>
Date: Thu, 18 Oct 2007 11:37:45 +1000
In-reply-to: <20071017161504.GA13077@xxxxxxxxxx>
Organization: SGI
References: <20070914080926.GA30150@xxxxxxxxxx> <46EA9741.6060303@xxxxxxxxxxx> <20071017161504.GA13077@xxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Opera Mail/9.10 (Win32)
On Thu, 18 Oct 2007 02:15:04 +1000, Louis-David Mitterrand <vindex+lists-xfs@xxxxxxxxxxx> wrote:

On Fri, Sep 14, 2007 at 09:14:25AM -0500, Eric Sandeen wrote:
Louis-David Mitterrand wrote:
> Hello,
>
> While cleaning up /lost+found a directory resisted removal:
>
>    sylla:/lost+found# rm 1879629858 -rf
>    rm: cannot remove directory `1879629858': Directory not empty
>
> The directory _is_ empty and "-rf" should remove it anyway, so this
> looks like a fs error.
>
> This is on debian unstable with 2.6.23-rc6.

Any errors in the system logs?  I'd try most recent xfs_repair next.  If
that doesn't fix it, make an xfs_metadump for Barry to look at.  :)
Make a backup first if you're paranoid.

Hi again,

Using a 2.6.23 kernel and after a clean xfs_repair-2.9.4 run I can't
remove that file:

sylla:/# rm /lost+found/3912672557
rm: cannot remove `/lost+found/3912672557': Operation not permitted

sylla:/# ls -li /lost+found/3912672557
3912672557 lrwxrwxrwx 1 root root 9 2006-04-09 19:10 /lost+found/3912672557 -> unix.7.gz

Can you apply the patch in
http://oss.sgi.com/archives/xfs/2007-09/msg00222.html
and run the patched repair on your filesytem?

Barry.


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