From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0yLb-00054X-Ej for qemu-devel@nongnu.org; Thu, 12 May 2016 17:40:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0yLW-0003cM-TY for qemu-devel@nongnu.org; Thu, 12 May 2016 17:40:42 -0400 Received: from resqmta-po-08v.sys.comcast.net ([96.114.154.167]:51522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0yLW-0003cB-Nq for qemu-devel@nongnu.org; Thu, 12 May 2016 17:40:38 -0400 From: Eric Blake Date: Thu, 12 May 2016 15:39:28 -0600 Message-Id: <1463089170-30550-2-git-send-email-eblake@redhat.com> In-Reply-To: <1463089170-30550-1-git-send-email-eblake@redhat.com> References: <1463089170-30550-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] qemu-io: Fix missing getopt() updates List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-block@nongnu.org Commit 770e0e0e [*] forgot to implement 'writev -f'. Likewise, commit c3e001c forgot to implement 'aio_write -u -z'. [*] does it sound "ech0e" in here? :) Signed-off-by: Eric Blake --- qemu-io-cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-io-cmds.c b/qemu-io-cmds.c index 4a00bc6..415be25 100644 --- a/qemu-io-cmds.c +++ b/qemu-io-cmds.c @@ -1150,7 +1150,7 @@ static int writev_f(BlockBackend *blk, int argc, char **argv) int pattern = 0xcd; QEMUIOVector qiov; - while ((c = getopt(argc, argv, "CqP:")) != -1) { + while ((c = getopt(argc, argv, "CfqP:")) != -1) { switch (c) { case 'C': Cflag = true; @@ -1595,7 +1595,7 @@ static int aio_write_f(BlockBackend *blk, int argc, char **argv) int flags = 0; ctx->blk = blk; - while ((c = getopt(argc, argv, "CfqP:z")) != -1) { + while ((c = getopt(argc, argv, "CfqP:uz")) != -1) { switch (c) { case 'C': ctx->Cflag = true; -- 2.5.5