From: David Chinner <dgc@sgi.com>
To: linux-xfs@oss.sgi.com
Subject: Re: can't remove dir
Date: Fri, 19 Oct 2007 08:07:14 +1000 [thread overview]
Message-ID: <20071018220714.GM995458@sgi.com> (raw)
In-Reply-To: <20071018131116.GA11957@apartia.fr>
On Thu, Oct 18, 2007 at 03:11:16PM +0200, Louis-David Mitterrand wrote:
> On Thu, Oct 18, 2007 at 07:24:39AM +1000, David Chinner wrote:
> > On Wed, Oct 17, 2007 at 06:15:04PM +0200, Louis-David Mitterrand wrote:
> > > 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 post the output of:
> >
> > # xfs_db -r -c "inode 3912672557" -c "p" <device>
>
> Here:
>
> core.magic = 0x494e
> core.mode = 0120777
> core.version = 1
> core.format = 1 (local)
> core.nlinkv1 = 1
.....
> core.immutable = 1
^^^^^^^^^^^^^^^^^^
You can't remove this link until you remove the immutable flag.
# xfs_io -r -c "chattr -i" /lost+found/3912672557
as root should do the trick.
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2007-10-18 22:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-14 8:09 can't remove dir Louis-David Mitterrand
2007-09-14 8:38 ` [UNSURE] " Justin Piszcz
2007-09-14 8:41 ` Louis-David Mitterrand
2007-09-14 8:45 ` Justin Piszcz
2007-09-14 9:10 ` David Chinner
2007-09-14 9:27 ` Louis-David Mitterrand
2007-09-16 22:32 ` David Chinner
2007-09-18 2:43 ` Barry Naujok
2007-09-14 14:14 ` Eric Sandeen
2007-09-14 14:18 ` Eric Sandeen
2007-10-17 16:15 ` Louis-David Mitterrand
2007-10-17 16:18 ` Justin Piszcz
2007-10-17 16:30 ` Louis-David Mitterrand
2007-10-17 21:24 ` David Chinner
2007-10-18 13:11 ` Louis-David Mitterrand
2007-10-18 22:07 ` David Chinner [this message]
2007-10-19 10:10 ` Louis-David Mitterrand
2007-10-21 23:50 ` David Chinner
2007-10-22 0:42 ` Barry Naujok
2007-10-22 1:17 ` David Chinner
2007-10-22 7:04 ` Louis-David Mitterrand
2007-10-18 1:37 ` Barry Naujok
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071018220714.GM995458@sgi.com \
--to=dgc@sgi.com \
--cc=linux-xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.