[linux-lvm] Re: LVM 2.2 snapshot bug
Stephen C. Tweedie
sct at redhat.com
Wed Nov 8 11:10:28 UTC 2000
On Tue, Nov 07, 2000 at 08:51:37PM +0100, Andrea Arcangeli wrote:
> On Tue, Nov 07, 2000 at 05:04:20PM +0000, Stephen C. Tweedie wrote:
> > It's a major bug as far as ext3 is concerned, because filesystem
> > recovery is a critical prerequisite for mounting a filesystem, and
> > that requires write access. ext3 has to be able to trust the ro bits
> > in order to know whether it is safe to perform recovery writes for a
> > mount, or whether the mount must be rejected because recovery cannot
> > take place.
> Stephen, the floppy device is doing exactly the same thing of LVM.
"floppy.c has this bug so it's OK for a major storage infrastructure
device to have the same bug." Hmm!
> I don't think it's a major bug. The _only_ downside of the bug is that
> it will generate I/O errors when you try to write to the device via
> ll_rw_block (no oopses, no corruption)
Worse --- it's the difference between having the kernel tell the user
"sorry, this operation is not possible" and saying "sure, fine"
followed by a thousand IO errors in the syslog when the user tries to
mount the ext3 filesystem. Journal recovery can generate several
megabytes of write requests, and each request is going to fail
noisily (failing writes silently during recovery is not an option).
More information about the linux-lvm