Message ID | 20180723201748.25573-17-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EED5014BC for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 20:33:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE29A28492 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 20:33:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D23502848B; Mon, 23 Jul 2018 20:33:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 7A4C928492 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 20:33:33 +0000 (UTC) Received: from localhost ([::1]:36411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fhhWO-0006Im-J3 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Jul 2018 16:33:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhIK-0001VB-Vz for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:19:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhIH-0002VO-06 for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:19:00 -0400 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:45697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhIG-0002Uj-PA; Mon, 23 Jul 2018 16:18:56 -0400 Received: by mail-oi0-x231.google.com with SMTP id q11-v6so3442587oic.12; Mon, 23 Jul 2018 13:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DLDFm/vqd0+IU4hiUirr8gQFfB3YVn29b0UJvHRPDtU=; b=vU0ddyY0uYdM/wrNIFgSfNGxM+RR64BeCAtt1rAOJtSXaq68IdR9Tp1UBLJ3ZvwnMr 1349KU30mpHJjf+6iD87VKphKamwlnmAcya52T8l+4prUD4x92DH+H5XMBYe2N83AMn+ QyT8yy7h8c2gXqNDwCCpm65Bd/eQX7kahb5uBl8GpK4CdWU5jNwrEGjdBr+7sQ8+1Dk6 1e/ZcqhKcdDh7Cnzv4gM5pb11hbz+nBs0XfX3CejfYMFfcY+K0qhtqYkPqKH2Kew7u92 6fFUkEyQ48cqE1nmIQPdXeJo0Za737mXqReAlmZRa6DTNAE29zbEZeMkzUud2Rs+h8/A 2Geg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DLDFm/vqd0+IU4hiUirr8gQFfB3YVn29b0UJvHRPDtU=; b=cKYyAgEwyw6pnPni4nJAZXfLElsKdt+p4tOAglgNJKsf8Zpv8KB7n53dfoAMEvB3/A 6kg4TrXxEyuIUEpb4GISwPGWP6X9GCTOG1oDSZVXN9YnUndPnCWZnKV2eI01l9NozLLk PJ6LhMWUFmtbTZ2xEZ9kuCls+J3muM326sKPA23M4wuRGzJPf3MmuUW13/CeKUUUbXC6 sDWe6UZwBUPM4JbH9pRgmwpMlV8MeuFRh4vJ2gS4pUYBcXUH2GtD9kr+1Gcit/Fr68xa 23MjTT1z1p+7+fmUUJtR8E4vgVcexGvZyvO0UtLfpUUoHQwxAIbhg1Bbf0XiAoW0xBGd eCog== X-Gm-Message-State: AOUpUlEbcdEFiMt6ZVhFjnOdajcy817wLeJfx2i97t+OZpmhIb/khjRs dzPO/P4WCopch2BNxK5WMOaToFVmSFo= X-Google-Smtp-Source: AAOMgpfoq0cR0TroD2QZ7ln8atkSHnH5VhGqJGrxA9RK2zCHu4+WVHqfOMMASHsuGDUR6m/Ageed9g== X-Received: by 2002:aca:1719:: with SMTP id j25-v6mr304784oii.138.1532377135626; Mon, 23 Jul 2018 13:18:55 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id m203-v6sm25490867oig.42.2018.07.23.13.18.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:18:54 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 23 Jul 2018 15:16:25 -0500 Message-Id: <20180723201748.25573-17-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> References: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::231 Subject: [Qemu-devel] [PATCH 16/99] iotests: Add test for -U/force-share conflicts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: qemu-stable@nongnu.org, Max Reitz <mreitz@redhat.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Patch Round-up for stable 2.12.1, freeze on 2018-07-30
|
expand
|
diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153 index a0fd815483..ec508c758f 100755 --- a/tests/qemu-iotests/153 +++ b/tests/qemu-iotests/153 @@ -242,6 +242,23 @@ _run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512' _cleanup_qemu +echo +echo "== Detecting -U and force-share conflicts ==" + +echo +echo 'No conflict:' +$QEMU_IMG info -U --image-opts driver=null-co,force-share=on +echo +echo 'Conflict:' +$QEMU_IMG info -U --image-opts driver=null-co,force-share=off + +echo +echo 'No conflict:' +$QEMU_IO -c 'open -r -U -o driver=null-co,force-share=on' +echo +echo 'Conflict:' +$QEMU_IO -c 'open -r -U -o driver=null-co,force-share=off' + # success, all done echo "*** done" rm -f $seq.full diff --git a/tests/qemu-iotests/153.out b/tests/qemu-iotests/153.out index bb721cb747..2510762ba1 100644 --- a/tests/qemu-iotests/153.out +++ b/tests/qemu-iotests/153.out @@ -399,4 +399,20 @@ Is another process using the image? Closing the other _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512 + +== Detecting -U and force-share conflicts == + +No conflict: +image: null-co:// +file format: null-co +virtual size: 1.0G (1073741824 bytes) +disk size: unavailable + +Conflict: +qemu-img: --force-share/-U conflicts with image options + +No conflict: + +Conflict: +-U conflicts with image options *** done