Re: [Qemu-devel] [PATCH v3] Add compare subcommand for qemu-img

2012-11-22 Thread Stefan Hajnoczi
On Wed, Nov 21, 2012 at 04:50:14AM -0500, Miroslav Rezanina wrote: diff --git a/qemu-img.c b/qemu-img.c index e29e01b..6294b11 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -101,7 +101,12 @@ static void help(void) '-a' applies a snapshot (revert disk to saved state)\n

[Qemu-devel] [PATCH v3] Add compare subcommand for qemu-img

2012-11-21 Thread Miroslav Rezanina
This is second version of patch adding compare subcommand that compares two images. Compare has following criteria: - only data part is compared - unallocated sectors are not read - in case of different image size, exceeding part of bigger disk has to be zeroed/unallocated to compare rest