[Qemu-devel] [PATCH 2/3] COW: Extend checking allocated bits to beyond one sector

2013-11-06 Thread Charlie Shepherd
cow_co_is_allocated() only checks one sector's worth of allocated bits before returning. This is allowed but (slightly) inefficient, so extend it to check all of the file's metadata sectors. Signed-off-by: Charlie Shepherd char...@ctshepherd.com --- block/cow.c | 36

Re: [Qemu-devel] [PATCH 2/3] COW: Extend checking allocated bits to beyond one sector

2013-11-06 Thread Paolo Bonzini
Il 06/11/2013 13:23, Charlie Shepherd ha scritto: cow_co_is_allocated() only checks one sector's worth of allocated bits before returning. This is allowed but (slightly) inefficient, so extend it to check all of the file's metadata sectors. Signed-off-by: Charlie Shepherd