From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arQYI-0001m7-5j for qemu-devel@nongnu.org; Sat, 16 Apr 2016 09:46:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arQYH-00056A-Bz for qemu-devel@nongnu.org; Sat, 16 Apr 2016 09:46:22 -0400 References: <1460690887-32751-1-git-send-email-famz@redhat.com> <1460690887-32751-9-git-send-email-famz@redhat.com> From: "Denis V. Lunev" Message-ID: <57124221.1070607@openvz.org> Date: Sat, 16 Apr 2016 16:46:09 +0300 MIME-Version: 1.0 In-Reply-To: <1460690887-32751-9-git-send-email-famz@redhat.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.7 v2 08/17] qemu-io: Add "-L" option for BDRV_O_NO_LOCK List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , Max Reitz , Jeff Cody , Markus Armbruster , Eric Blake , John Snow , qemu-block@nongnu.org, berrange@redhat.com, pbonzini@redhat.com On 04/15/2016 06:27 AM, Fam Zheng wrote: > Signed-off-by: Fam Zheng > --- > qemu-io.c | 22 ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) > > diff --git a/qemu-io.c b/qemu-io.c > index 288bba8..6bb6232 100644 > --- a/qemu-io.c > +++ b/qemu-io.c > @@ -107,6 +107,7 @@ static void open_help(void) > " -r, -- open file read-only\n" > " -s, -- use snapshot file\n" > " -n, -- disable host cache\n" > +" -L, -- disable image lock\n" > " -o, -- options to be given to the block driver" > "\n"); > } pls add L to .args below static const cmdinfo_t open_cmd = { .name = "open", .altname = "o", .cfunc = open_f, .argmin = 1, .argmax = -1, .flags = CMD_NOFILE_OK, .args = "[-Crsn] [-o options] [path]", .oneline = "open the file specified by path", .help = open_help, };