Re: EXT2 and BadBlock updating.....

From: Stephen C. Tweedie (sct@redhat.com)
Date: Tue Apr 11 2000 - 17:14:19 EST


Hi,

On Tue, Apr 11, 2000 at 04:51:05PM -0500, Ed Carp wrote:
>
> Can e2fsck add to the badblock list of a mounted file system?

In theory yes, but not entirely safely. Specifically, adding a bad
block requires updating the bad block inode (which is fine, the kernel
doesn't touch that itself), and marking the block in use in the
block bitmaps. It's this latter stage which causes problem if the
kernel decides to access the same bitmap block at the same time
that e2fsck is doing a read-modify-write on it.

If the underlying filesystem is absolutely quiescent then you shouldn't
have a problem, but I wouldn't recommend it.

It would be pretty simple to do the necessary bad block inode work
in kernel space, though.

--Stephen

-
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/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:17 EST