From patchwork Thu May 12 21:39:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Blake X-Patchwork-Id: 9086331 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 77C469F372 for ; Thu, 12 May 2016 21:41:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7ACB20225 for ; Thu, 12 May 2016 21:41:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 358D72021A for ; Thu, 12 May 2016 21:41:57 +0000 (UTC) Received: from localhost ([::1]:59913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0yMm-0006V8-CG for patchwork-qemu-devel@patchwork.kernel.org; Thu, 12 May 2016 17:41:56 -0400 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 Received: from resomta-po-09v.sys.comcast.net ([96.114.154.233]) by comcast with SMTP id 0yKSbE9cW7xvb0yKYb6pFw; Thu, 12 May 2016 21:39:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1463089178; bh=vkQ6cx9nIDD59gXN/3jv08r1v+5vtnnYUapHQIUN5TA=; h=Received:Received:From:To:Subject:Date:Message-Id; b=Snw0Q8rYnSGLTZyZjMFlZ3Xn4XRBOIxxtSgi+53hKTiAGdu9NzWoAyfJE3T7lDaI5 BDxoXcMrt3IJahATkpk1ROb+NXAhVZIeZnLmcqNt/QeFhoU3XqrCDu2GLbRPNcTgme XKn4hX501pLmwEAsHxorWHX1v81uNdL+ReTd3plF/sjMEYGhC9CV0Ly0wZt7LnIp3v H8sjtaRpQk9LLAQbS5eXaC7C9CQdBzbQJkxW/hCwD09tC5Ge3rgOyrugHndCgz/Dip 9x/VneVsfLuri6VNjgbS4OVl0s2VCDQjp/ckaF4rj4r/ea3Wm6FXg6WX3MyqJ05MHM 6nx9PsaiG/csw== Received: from red.redhat.com ([24.10.254.122]) by resomta-po-09v.sys.comcast.net with comcast id tZfX1s0042fD5rL01ZfdCh; Thu, 12 May 2016 21:39:37 +0000 From: Eric Blake To: qemu-devel@nongnu.org Date: Thu, 12 May 2016 15:39:28 -0600 Message-Id: <1463089170-30550-2-git-send-email-eblake@redhat.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1463089170-30550-1-git-send-email-eblake@redhat.com> References: <1463089170-30550-1-git-send-email-eblake@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.114.154.167 Subject: [Qemu-devel] [PATCH 1/3] qemu-io: Fix missing getopt() updates X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, qemu-block@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Max Reitz --- 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;