Re: [Qemu-devel] [PATCH 3/4] This patch adds new qemu-img subcommand that compares content of two disk images.

2013-02-10 Thread Miroslav Rezanina
- Original Message - From: Eric Blake ebl...@redhat.com To: Miroslav Rezanina mreza...@redhat.com Cc: qemu-devel@nongnu.org, kw...@redhat.com, pbonz...@redhat.com, stefa...@redhat.com Sent: Friday, February 8, 2013 8:19:45 PM Subject: Re: [PATCH 3/4] This patch adds new qemu-img

Re: [Qemu-devel] [PATCH 3/4] This patch adds new qemu-img subcommand that compares content of two disk images.

2013-02-08 Thread Eric Blake
On 02/08/2013 01:33 AM, Miroslav Rezanina wrote: This patch adds new qemu-img subcommand that compares content of two disk images. +static int64_t sectors_to_process(int64_t total, int64_t from) +{ +return MIN((total - from), (IO_BUF_SIZE BDRV_SECTOR_BITS)); Why the spurious ()?