From nobody Wed Nov 5 16:39:37 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 153622694789321.673671693603524; Thu, 6 Sep 2018 02:42:27 -0700 (PDT) Received: from localhost ([::1]:60464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxqno-0000p6-T1 for importer@patchew.org; Thu, 06 Sep 2018 05:42:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxqjK-0005j7-MU for qemu-devel@nongnu.org; Thu, 06 Sep 2018 05:37:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxqjG-0003aU-RC for qemu-devel@nongnu.org; Thu, 06 Sep 2018 05:37:38 -0400 Received: from fanzine.igalia.com ([91.117.99.155]:54016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxqjG-0003Q8-3T; Thu, 06 Sep 2018 05:37:34 -0400 Received: from 91-158-71-53.elisa-laajakaista.fi ([91.158.71.53] helo=perseus.local) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1fxqjD-00049d-9c; Thu, 06 Sep 2018 11:37:31 +0200 Received: from berto by perseus.local with local (Exim 4.89) (envelope-from ) id 1fxqiy-0001ny-Nu; Thu, 06 Sep 2018 12:37:16 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=References:In-Reply-To:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=e2gonpwuluc95Z92wHiLHlJf66OVUFblULszrJNuBgw=; b=c44+kqkvuMmufJdYesfHXkpI/kBPSy1lO5i5GjaiS/orCic0C5H1kg60iGNlVNqLnWb0IjkCI1Yq3n60zprr8MD9WX2XeUOvx/lIz/WWicL+tduwFMqfGxo/ygzanUdzF410kOUMuOTSsx/NpKYzfon9W9RqYrh2VAYTR/Q9jHBhWNRMYT8gS1Qa9IfYEudlqZmeyTFHc7eG4SMiTo2gFOUW9JADFAKhl5O7bDBgvjm9ASG2ZCjhwOidkGM38phD3c6JqyoCp4AMmqKfaqyOqCFC5FSQp1TFHRA/4pdh99/+5Ivs7ECbA2ERtaEHiXUp+M050+tVqE3n/O+28OMPnw==; From: Alberto Garcia To: qemu-devel@nongnu.org Date: Thu, 6 Sep 2018 12:37:04 +0300 Message-Id: <4abf5ed9c4070955d76af2925d0fee4f30f3e7ac.1536226505.git.berto@igalia.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: 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 v3 04/10] block: Don't look for child references in append_open_options() 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" In the previous patch we removed child references from bs->options, so there's no need to look for them here anymore. Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz --- block.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/block.c b/block.c index c764eb731c..aaa4cf6897 100644 --- a/block.c +++ b/block.c @@ -5154,23 +5154,12 @@ static bool append_open_options(QDict *d, BlockDriv= erState *bs) { const QDictEntry *entry; QemuOptDesc *desc; - BdrvChild *child; bool found_any =3D false; =20 for (entry =3D qdict_first(bs->options); entry; entry =3D qdict_next(bs->options, entry)) { - /* Exclude node-name references to children */ - QLIST_FOREACH(child, &bs->children, next) { - if (!strcmp(entry->key, child->name)) { - break; - } - } - if (child) { - continue; - } - - /* And exclude all non-driver-specific options */ + /* Exclude all non-driver-specific options */ for (desc =3D bdrv_runtime_opts.desc; desc->name; desc++) { if (!strcmp(qdict_entry_key(entry), desc->name)) { break; --=20 2.11.0