From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d12lN-0000c3-Jn for qemu-devel@nongnu.org; Wed, 19 Apr 2017 23:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d12lM-0007Ac-OR for qemu-devel@nongnu.org; Wed, 19 Apr 2017 23:28:09 -0400 Date: Thu, 20 Apr 2017 11:27:56 +0800 From: Fam Zheng Message-ID: <20170420032756.GA24486@lemon.lan> References: <20170314023933.12118-1-famz@redhat.com> <20170314023933.12118-3-famz@redhat.com> <0f1ecad6-9e85-39a2-6d52-5481f7e309cb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f1ecad6-9e85-39a2-6d52-5481f7e309cb@redhat.com> Subject: Re: [Qemu-devel] [PATCH RFC 2/3] qemu-img: Add --unsafe-read option to subcommands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Kevin Wolf , qemu-block@nongnu.org, Max Reitz On Tue, 04/18 08:20, Eric Blake wrote: > bool, please. (Just because existing code is lousy with using an int > for a bool doesn't mean we should perpetuate it) OK, will fix. > > > > @@ -3033,6 +3085,9 @@ static int img_rebase(int argc, char **argv) > > case OPTION_IMAGE_OPTS: > > image_opts = true; > > break; > > + case 'U': > > + unsafe_read = 1; > > s/1/true/ > > Good patch, but missing documentation updates to --help/man page. So, > as encouragement to add that when you drop the RFC, I'll withhold my R-b > until then. ;) Yes, I'll add another patch for ease of review. Fam