Received: with ECARTIS (v1.0.0; list xfs); Wed, 17 Oct 2007 18:37:39 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by oss.sgi.com (8.12.11.20060308/8.12.10/SuSE Linux 0.7) with SMTP id l9I1bWhJ006524 for ; Wed, 17 Oct 2007 18:37:34 -0700 Received: from pc-bnaujok.melbourne.sgi.com (pc-bnaujok.melbourne.sgi.com [134.14.55.58]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id LAA04444; Thu, 18 Oct 2007 11:37:30 +1000 Date: Thu, 18 Oct 2007 11:37:45 +1000 To: "Louis-David Mitterrand" , linux-xfs@oss.sgi.com Subject: Re: can't remove dir From: "Barry Naujok" Organization: SGI Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 References: <20070914080926.GA30150@apartia.fr> <46EA9741.6060303@sandeen.net> <20071017161504.GA13077@apartia.fr> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20071017161504.GA13077@apartia.fr> User-Agent: Opera Mail/9.10 (Win32) X-Virus-Scanned: ClamAV 0.91.2/4545/Wed Oct 17 14:05:57 2007 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 13372 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: bnaujok@sgi.com Precedence: bulk X-list: xfs On Thu, 18 Oct 2007 02:15:04 +1000, Louis-David Mitterrand 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.