Re: Removing bad fsck inode files

Michael Clark (michael@astrolog.net)
Tue, 02 Nov 1999 19:37:48 +1300


Tom Livingston wrote:
>
> Michael Clark:
> > The corruption has probably set the immutable flag on these files.
> >
> > Have you tried: chattr -i *

Must be a bug in the ioctl chattr uses - it can't read flags on special
files.

i.e.

mknod test c 0 0
chattr +i test
chattr: Operation not supported by device while reading flags on a

> Thanks for the advice! This did clear some, but unfortunately not many.
> With my test group of #1* I was able to delete 16 of the 4171... but of
> course that still leaves 4155 files. This is the output I got from
> chattr -i \#1*:
>
> chattr: Invalid argument while reading flags on #1118037
> chattr: Inappropriate ioctl for device while reading flags on #1118068
> chattr: No such device while reading flags on #1118105
> chattr: No such device while reading flags on #1118128
> chattr: No such device while reading flags on #1118148
> chattr: No such device while reading flags on #1118176
>
> I guess all of my trouble are because they are all invalid devices & pipes.
> is there no way to clear these types of invalid devices?
>
> tom

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/