[Lguest] [PATCH] lguest.c: truncate problems in handle_block_output

Rusty Russell rusty at rustcorp.com.au
Wed Sep 26 14:24:06 EST 2007


On Tue, 2007-09-25 at 17:13 +0100, Chris Malley wrote:
> Hi
> 
> I have been experiencing consistent problems with an lguest under moderate
> I/O conditions (e.g. when updating the distribution with yum) where the guest
> crashes with "Write past end 2965302784+4294967295", and I end up with a
> zero-length disk image.

OK, I pushed the one-liner ftruncate -> ftruncate64 to Linus
immediately, and fixed up the virtio version due for 2.6.24 submission.

The error handling in the virtio version was already cleaner,
fortunately (we actually hand an error back to the guest, rather than
aborting on error).

Thanks!
Rusty.




More information about the Lguest mailing list