Received: from eggs.gnu.org ([208.118.235.92]:47647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV2cL-0007hO-Mi for qemu-devel@nongnu.org; Thu, 17 May 2012 11:27:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SV2cJ-0002e4-Lc for qemu-devel@nongnu.org; Thu, 17 May 2012 11:27:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV2cJ-0002dX-DW for qemu-devel@nongnu.org; Thu, 17 May 2012 11:27:51 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4HFRntt011159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 17 May 2012 11:27:49 -0400 Date: Thu, 17 May 2012 16:27:47 +0100 From: "Richard W.M. Jones" Message-ID: <20120517152747.GF15276@amd.home.annexia.org> References: <1337266628-3588-1-git-send-email-rjones@redhat.com> <4FB515FC.3010505@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FB515FC.3010505@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] qemu-img: Implement 'diff' operation. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org On Thu, May 17, 2012 at 09:15:08AM -0600, Eric Blake wrote: > On 05/17/2012 08:57 AM, Richard W.M. Jones wrote: > > +DEF("diff", img_diff, > > + "diff [-F backing_fmt] -b backing_file [-f fmt] [-O output_fmt] [-o options] filename output_filename") > > +STEXI > > +@item diff [-F @var{backing_fmt}] -b @var{backing_file} [-f @var{fmt}] [-O @var{output_fmt}] [-o @var{options}] @var{filename} @var{output_filename} > > Why the difference in ordering between -o and -O? I though it looked more logical, but I can swap them around too if you think it's better. > > + > > + if (argc - optind != 2) { > > + error_report("The input and output filenames must be supplied"); > > + return 1; > > Error is misleading if argc > optind+2. OK will fix. I'll rework the num_sectors thing in v3. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v