Am 13.02.2013 09:09, schrieb Miroslav Rezanina: > This is 11th version of patch adding compare subcommand that > compares two images. Compare has following criteria: > - only data part is compared > - unallocated sectors are not read > - qemu-img returns: > - 0 if images are identical > - 1 if images differ > - >2 error on execution
> Miroslav Rezanina (4): > block: Add synchronous wrapper for bdrv_co_is_allocated_above > qemu-img: Add "Quiet mode" option > qemu-img: Add compare subcommand > qemu-iotests: Add qemu-img compare test > > block.c | 51 +++++- > blockdev.c | 6 +- > include/block/block.h | 5 +- > qemu-img-cmds.hx | 34 ++-- > qemu-img.c | 441 > +++++++++++++++++++++++++++++++++++++++----- > qemu-img.texi | 56 ++++++ > tests/qemu-iotests/048 | 78 ++++++++ > tests/qemu-iotests/048.out | 31 +++ > tests/qemu-iotests/group | 1 + > 9 files changed, 633 insertions(+), 70 deletions(-) > create mode 100755 tests/qemu-iotests/048 > create mode 100644 tests/qemu-iotests/048.out Reviewed-by: Kevin Wolf <kw...@redhat.com>