From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGxdd-0008QS-AF for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:28:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGxdW-0002ms-FP for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:28:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGxdW-0002mi-87 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:27:58 -0500 From: Max Reitz Date: Fri, 21 Feb 2014 22:30:36 +0100 Message-Id: <1393018238-15068-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/2] quorum: Simplify quorum_open() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , =?UTF-8?q?Beno=C3=AEt=20Canet?= , Stefan Hajnoczi , Max Reitz This series employs the new ability of qdict_array_split() to not only split a QDict into a QList of QDicts (and a remainder QDict), but into a QList of QObjects of any kind, to simplify quorum_open(). This (in my opinion) enhances readability, robustness against malformatted options and allows specifying both reference strings and full option dicts at the same time. This series depends on v19 of Beno=C3=AEt's Quorum series and on my "Extr= act non-QDicts in qdict_array_split()" series. v2: - Patch 1: Adapted comment about how num_children is determined [Beno=C3=AEt] - Patch 2: Fixing the monitor output of quorum (v19) requires fixing of the test output as well; however, filtering the sector-num is no longer required Max Reitz (2): quorum: Simplify quorum_open() iotests: Mixed quorum child device specifications block/quorum.c | 66 +++++++++++++++++++++++++++-------------= ------ tests/qemu-iotests/081 | 51 +++++++++++++++++++++++++++++++++++ tests/qemu-iotests/081.out | 15 +++++++++++ 3 files changed, 105 insertions(+), 27 deletions(-) --=20 1.9.0