Re: [Qemu-devel] [PATCH] block: Fix is_allocated_above with resized files

2013-01-29 Thread Stefan Hajnoczi
On Thu, Jan 24, 2013 at 10:02:08AM -0800, Vishvananda Ishaya wrote: > In an image chain, if the base image is smaller than the current > image, we need to make sure to use the current images count of > unallocated blocks once we get to the end of the base image. Without > this change the code will

[Qemu-devel] [PATCH] block: Fix is_allocated_above with resized files

2013-01-24 Thread Vishvananda Ishaya
In an image chain, if the base image is smaller than the current image, we need to make sure to use the current images count of unallocated blocks once we get to the end of the base image. Without this change the code will return 0 blocks when it gets to the end of the base image and mirror_run wil