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

2012-11-30 Thread Stefan Hajnoczi
On Tue, Nov 27, 2012 at 9:03 AM, Miroslav Rezanina mreza...@redhat.com wrote: diff --git a/qemu-img.c b/qemu-img.c index e29e01b..9cc4365 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -101,7 +101,13 @@ static void help(void) '-a' applies a snapshot (revert disk to saved state)\n

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

2012-11-27 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