From patchwork Thu Oct 18 08:59:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alberto Garcia X-Patchwork-Id: 10646879 Return-Path: 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 5F9DA3C13 for ; Thu, 18 Oct 2018 09:01:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5440028862 for ; Thu, 18 Oct 2018 09:01:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48CF728867; Thu, 18 Oct 2018 09:01:13 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 E5C2728864 for ; Thu, 18 Oct 2018 09:01:10 +0000 (UTC) Received: from localhost ([::1]:41155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD4B3-0001z0-Nc for patchwork-qemu-devel@patchwork.kernel.org; Thu, 18 Oct 2018 05:01:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD49c-00010s-0x for qemu-devel@nongnu.org; Thu, 18 Oct 2018 04:59:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gD49Y-0008Ea-Kt for qemu-devel@nongnu.org; Thu, 18 Oct 2018 04:59:39 -0400 Received: from fanzine.igalia.com ([91.117.99.155]:55297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gD49W-0007jp-ED; Thu, 18 Oct 2018 04:59:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Message-Id:Date:Subject:Cc:To:From; bh=Bnoj7EaOohi8Dr+fYwCBRq0+MWlrw3joc2GXkpWPpI8=; b=OhOy6jG4vUA07PQ4Xwn5vPre4sBVP7jySESQJ/QyiwqspV7oHfrDB82K2pnzlhcWHDaOP8AskawDgoe/DkGOu3z7a71y3s7GA3rMTXMRIyMjut+0ZAwkHmLEqrbTBi8qlOghYUZl6saHAquOxCr0gtxcgHGYzkVJi/IxY+8R/xwWcsXOAWyU3lsdKNzWXpQ2uaND3nc/wkt2dVbHdW321IXicebif/KCFU29mQVr46Cjx/PFjQzSVJUjU0J1UFw4s8motAWeBxsYlwOc27DWps0Sb9aOX5qO92Vuvj8M2ogFoytqe2+YAv5asQuUxNIjDXFWDntnROtLSFTQspaejg==; Received: from [194.100.51.2] (helo=perseus.local) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1gD49O-0002e9-K0; Thu, 18 Oct 2018 10:59:26 +0200 Received: from berto by perseus.local with local (Exim 4.89) (envelope-from ) id 1gD495-00046Z-8U; Thu, 18 Oct 2018 11:59:07 +0300 From: Alberto Garcia To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 11:59:02 +0300 Message-Id: X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 91.117.99.155 Subject: [Qemu-devel] [PATCH 0/2] Forbid adding children to a Quorum in blkverify mode 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: Kevin Wolf , Alberto Garcia , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, as pointed out by Kevin, the Quorum driver should not allow adding new children when running in blkverify mode. This series fixes that and also adds a couple of basic iotests for the x-blockdev-change QMP command. Berto Alberto Garcia (2): quorum: Forbid adding children in blkverify mode iotest: Test x-blockdev-change on a Quorum block/quorum.c | 8 +++++ tests/qemu-iotests/081 | 86 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/081.out | 54 +++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+)