From nobody Tue May 14 20:57:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1619040551; cv=none; d=zohomail.com; s=zohoarc; b=QARIuPeFgGpyM0K+Jr6r+PC9fId+M5D8OhlDLUcgOqD4DNst5mmLi7vTtdKxFMI4MDUfdQh8qiYhYU+5goCEW75h/xueRtRbmzpjMNDHSWYdTeyFeUCyHlBdJMivnf0vfhB/vb43rkRIbB2LMZEvgwMh0hSNNkJoQFZD2uPNIdg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619040551; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kgfSc+fZlI3rsE9qwzpzbzGJGP1E9cy4mRIxo/S/Z8w=; b=NS5upSUX2M+NfsBGS1g2KdnsD8TNo3eb/w35I8AxRoaMSkw5iZv6Anl4IIIaven4LVhWd7YkydiDdeWuC7DBWi/05Pdc03lDrFjRCpnJ8nsAhrBKnRXgi83Oi2PMnf55Xb410RgyP4XEHMyeEg16uS2WV0YWUqkUnh02CDZOwMM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1619040551545769.6898099987019; Wed, 21 Apr 2021 14:29:11 -0700 (PDT) Received: from localhost ([::1]:57594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZKPF-0001iH-IB for importer@patchew.org; Wed, 21 Apr 2021 17:29:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZKKH-0006SV-RC for qemu-devel@nongnu.org; Wed, 21 Apr 2021 17:24:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:47827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZKKF-0008Kq-Ap for qemu-devel@nongnu.org; Wed, 21 Apr 2021 17:24:01 -0400 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-594-y8Ih5AhsNqeWSUOPQK79Fg-1; Wed, 21 Apr 2021 17:23:47 -0400 Received: by mail-oi1-f200.google.com with SMTP id c3-20020a0568081383b029010231e3ec8cso15411647oiw.22 for ; Wed, 21 Apr 2021 14:23:47 -0700 (PDT) Received: from redhat.redhat.com (ip68-103-222-6.ks.ok.cox.net. [68.103.222.6]) by smtp.gmail.com with ESMTPSA id n13sm141031otk.61.2021.04.21.14.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 14:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619040238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kgfSc+fZlI3rsE9qwzpzbzGJGP1E9cy4mRIxo/S/Z8w=; b=DXjoJBp0KyT/uHKf+qYFfBm09XG8mkDJa3uqJu+UfkgbGFbYh5e+49QwMWSYOiK+fqcQhx 4AySTBIh9gZV39V+TE0Ndbvm2ERwc/LXObzlFdBdji/yTnf+63D9RJn2BTIDRHpMF57LX7 ocbpNzclxVx+rNwpRTf429ov2ePyuzA= X-MC-Unique: y8Ih5AhsNqeWSUOPQK79Fg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kgfSc+fZlI3rsE9qwzpzbzGJGP1E9cy4mRIxo/S/Z8w=; b=VPI1SSh7wqAbPFGVKwLKDrQ6+y74+xy0Lpm9BpKM2MMmV5FULO/oVJpxtiar2Yqa8f GyAf1+wmMrJSHnx/IealkpaqoyYqjIapKebvX4u80jUoC592VgmFBa0t4kxvkvL38iIT n/XOxpEwxtmpdH1IAubrw15yzdWW4hiyMZ4ZSALNMxZ2ViPxM5X1qnxukQlQYl/e8BOt ChrMMk3ac3zZ1smM7pm7VC/OKmc/cUH6OluC3m6iU+tHo57E8Xt8jzIKold0nTU/1Aws BOSleJjJt2SBekZWP7dJH2YSQ22zJtdp87rvRSifMljNoKjve78ovIZN8ST1iXuUEtvf vw3A== X-Gm-Message-State: AOAM530qjnQYcHF9W87E+daG2g/UI71zkuDqXvYnFRSq+1mm4SI8jTxq +C1UH3YuXwv9qeSwwxGNHf5g0IfM34gkS+bkvFPvYDhecAvo9KUxAYIAokLPn7XExFwPAGszQkC ELXmPYaZcV2VtbjE= X-Received: by 2002:aca:4791:: with SMTP id u139mr9133oia.83.1619040226381; Wed, 21 Apr 2021 14:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhk5laa9dHRXAnCf2ZtYTLAB29gOJt+sdlgifLTrADk0fjqH+zbyUHP4uryny9zibo+6IPiQ== X-Received: by 2002:aca:4791:: with SMTP id u139mr9128oia.83.1619040226240; Wed, 21 Apr 2021 14:23:46 -0700 (PDT) From: Connor Kuehl To: qemu-block@nongnu.org Subject: [PATCH v4 1/2] iotests/231: Update expected deprecation message Date: Wed, 21 Apr 2021 16:23:42 -0500 Message-Id: <20210421212343.85524-2-ckuehl@redhat.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210421212343.85524-1-ckuehl@redhat.com> References: <20210421212343.85524-1-ckuehl@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ckuehl@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=ckuehl@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, sgarzare@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" The deprecation message in the expected output has technically been wrong since the wrong version of a patch was applied to it. Because of this, the test fails. Correct the expected output so that it passes. Signed-off-by: Connor Kuehl Reviewed-by: Max Reitz Reviewed-by: Stefano Garzarella --- v3 -> v4: * Added Stefano's s-o-b to the commit message tests/qemu-iotests/231.out | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/qemu-iotests/231.out b/tests/qemu-iotests/231.out index 579ba11c16..747dd221bb 100644 --- a/tests/qemu-iotests/231.out +++ b/tests/qemu-iotests/231.out @@ -1,9 +1,7 @@ QA output created by 231 -qemu-img: RBD options encoded in the filename as keyvalue pairs is depreca= ted. Future versions may cease to parse these options in the future. +qemu-img: warning: RBD options encoded in the filename as keyvalue pairs i= s deprecated unable to get monitor info from DNS SRV with service name: ceph-mon -no monitors specified to connect to. qemu-img: Could not open 'json:{'file.driver':'rbd','file.filename':'rbd:r= bd/bogus:conf=3DBOGUS_CONF'}': error connecting: No such file or directory unable to get monitor info from DNS SRV with service name: ceph-mon -no monitors specified to connect to. qemu-img: Could not open 'json:{'file.driver':'rbd','file.pool':'rbd','fil= e.image':'bogus','file.conf':'BOGUS_CONF'}': error connecting: No such file= or directory *** done --=20 2.30.2 From nobody Tue May 14 20:57:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1619040350; cv=none; d=zohomail.com; s=zohoarc; b=Qz325JOdZ5nGAKgHsC8GXXuJ1MdH1Hgj9mwTA3M9qwjtHRtTx/mhC3w8g89z+jnwG/yPD9WohfnJMIuVNPwlLAJ1jYFbHvmS7PxJ9X0Lr5dHdQP8rlZ68bzcb38XesVLzPKTS1o4d6ay9UQrAkqPlWw2grWwhHrx/JmUP9QW/GU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619040350; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cBricITajURSYy0dfQnRiPFC/QX/3iQn7kT3AzvdW0o=; b=izukXllpVucbgiRS90RDUrHeTjUIAf9yxl5LNHYr9fJ+TLnkz0mCJG6Avzg47nmQOtwsFJY+lSkeyxfc2VuxMm68rA7zl13k5g4Zr+iDxZ8ynoMMI7B0nDtG4lPrepDdtmgWkiGY1kZp1KoguWAD1YBUCzm7HY2PhqQrbRza7Mc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161904035036258.72731512912844; Wed, 21 Apr 2021 14:25:50 -0700 (PDT) Received: from localhost ([::1]:51922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZKM1-0007jH-AJ for importer@patchew.org; Wed, 21 Apr 2021 17:25:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZKKJ-0006UZ-Ak for qemu-devel@nongnu.org; Wed, 21 Apr 2021 17:24:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZKKH-0008LZ-5k for qemu-devel@nongnu.org; Wed, 21 Apr 2021 17:24:03 -0400 Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-143-LpGdXE6YNrO3HVx_aA8WXQ-1; Wed, 21 Apr 2021 17:23:48 -0400 Received: by mail-oi1-f197.google.com with SMTP id b21-20020a0568080115b029018764f93fdcso1939157oie.12 for ; Wed, 21 Apr 2021 14:23:48 -0700 (PDT) Received: from redhat.redhat.com (ip68-103-222-6.ks.ok.cox.net. [68.103.222.6]) by smtp.gmail.com with ESMTPSA id n13sm141031otk.61.2021.04.21.14.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 14:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619040239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cBricITajURSYy0dfQnRiPFC/QX/3iQn7kT3AzvdW0o=; b=Ko7nQm8VebbI7bE63yJuIIQpVNISEAel/boyLUt4rAQjAX6vdxKlkd5dDRUmjd2AlFFVVW G4SusTLNUjEDYSpUUqY5ejMirm9Rd7ZeXm1x4qAEFjZhVoc+fcwdy6U03iGC6EZQRitmmK pONIk42rWMxDH7q2EAOSRs65RBc/YCo= X-MC-Unique: LpGdXE6YNrO3HVx_aA8WXQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cBricITajURSYy0dfQnRiPFC/QX/3iQn7kT3AzvdW0o=; b=oVAWSfbxXd+HEo0tD3RRTIH6VjAOP7DQ1Fb5E7T4MJsfxHY2r1yvtQnzz1MAT+jDGt K2yT3D/bTaLH/xiPHSU+mCCFc0dq+5GrMMFgaDXUtpBQSLBdPRLKU9uwPGtGk4gWVPz1 antOtnJGXC4v4jonN+bPJWD5+YBgvOIrjuKA0U1/vrQ6HtK2/x9uVVHaVupJobdkUuW4 /bscL7RkK9LFvQmp9kl4+vuHVcPLxUtjeZW1/SecHAwf5+1aRrZTSugdk4fhMyN0X8X9 rnrh1D8eYz353pGpzS0Q85d98ansh4G/BI7XNIkNZ5VWVjvI7x9lnJZlsQDOxkNjCCzn Xh2A== X-Gm-Message-State: AOAM531gscji33YMy38UHaFoAzQZzWwR35/kZoT9/TH68BCj3Pq9NZ9D tTaB5qiRLKkO3adDx282VIGRiClqqjxB839wF9G4FvpU+Jgb7DFxCM2FmHSsSrd5r1dq5TRRgRj QY1Gj+354iWcTLgs= X-Received: by 2002:a54:4484:: with SMTP id v4mr4019536oiv.70.1619040227392; Wed, 21 Apr 2021 14:23:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx42MPYGf1EVoqO1zF9KqHr4mlzNnwfeG/vztL7IE+3FzyvdOHLzgeza+SgGXhcxlMl8rvKMg== X-Received: by 2002:a54:4484:: with SMTP id v4mr4019527oiv.70.1619040227193; Wed, 21 Apr 2021 14:23:47 -0700 (PDT) From: Connor Kuehl To: qemu-block@nongnu.org Subject: [PATCH v4 2/2] block/rbd: Add an escape-aware strchr helper Date: Wed, 21 Apr 2021 16:23:43 -0500 Message-Id: <20210421212343.85524-3-ckuehl@redhat.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210421212343.85524-1-ckuehl@redhat.com> References: <20210421212343.85524-1-ckuehl@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ckuehl@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=ckuehl@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, sgarzare@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Sometimes the parser needs to further split a token it has collected from the token input stream. Right now, it does a cursory check to see if the relevant characters appear in the token to determine if it should break it down further. However, qemu_rbd_next_tok() will escape characters as it removes tokens from the token stream and plain strchr() won't. This can make the initial strchr() check slightly misleading since it implies qemu_rbd_next_tok() will find the token and split on it, except the reality is that qemu_rbd_next_tok() will pass over it if it is escaped. Use a custom strchr to avoid mixing escaped and unescaped string operations. Furthermore, this code is identical to how qemu_rbd_next_tok() seeks its next token, so incorporate this custom strchr into the body of that function to reduce duplication. Reported-by: Han Han Fixes: https://bugzilla.redhat.com/1873913 Signed-off-by: Connor Kuehl Reviewed-by: Stefano Garzarella --- v3 -> v4: * Replace qemu_rbd_next_tok() seek loop with qemu_rbd_strchr() since they're identical block/rbd.c | 32 +++++++++++++++++++++----------- tests/qemu-iotests/231 | 4 ++++ tests/qemu-iotests/231.out | 3 +++ 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index f098a89c7b..26f64cce7c 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -113,21 +113,31 @@ static int qemu_rbd_connect(rados_t *cluster, rados_i= octx_t *io_ctx, const char *keypairs, const char *secretid, Error **errp); =20 +static char *qemu_rbd_strchr(char *src, char delim) +{ + char *p; + + for (p =3D src; *p; ++p) { + if (*p =3D=3D delim) { + return p; + } + if (*p =3D=3D '\\' && p[1] !=3D '\0') { + ++p; + } + } + + return NULL; +} + + static char *qemu_rbd_next_tok(char *src, char delim, char **p) { char *end; =20 *p =3D NULL; =20 - for (end =3D src; *end; ++end) { - if (*end =3D=3D delim) { - break; - } - if (*end =3D=3D '\\' && end[1] !=3D '\0') { - end++; - } - } - if (*end =3D=3D delim) { + end =3D qemu_rbd_strchr(src, delim); + if (end) { *p =3D end + 1; *end =3D '\0'; } @@ -171,7 +181,7 @@ static void qemu_rbd_parse_filename(const char *filenam= e, QDict *options, qemu_rbd_unescape(found_str); qdict_put_str(options, "pool", found_str); =20 - if (strchr(p, '@')) { + if (qemu_rbd_strchr(p, '@')) { image_name =3D qemu_rbd_next_tok(p, '@', &p); =20 found_str =3D qemu_rbd_next_tok(p, ':', &p); @@ -181,7 +191,7 @@ static void qemu_rbd_parse_filename(const char *filenam= e, QDict *options, image_name =3D qemu_rbd_next_tok(p, ':', &p); } /* Check for namespace in the image_name */ - if (strchr(image_name, '/')) { + if (qemu_rbd_strchr(image_name, '/')) { found_str =3D qemu_rbd_next_tok(image_name, '/', &image_name); qemu_rbd_unescape(found_str); qdict_put_str(options, "namespace", found_str); diff --git a/tests/qemu-iotests/231 b/tests/qemu-iotests/231 index 0f66d0ca36..8e6c6447c1 100755 --- a/tests/qemu-iotests/231 +++ b/tests/qemu-iotests/231 @@ -55,6 +55,10 @@ _filter_conf() $QEMU_IMG info "json:{'file.driver':'rbd','file.filename':'rbd:rbd/bogus:c= onf=3D${BOGUS_CONF}'}" 2>&1 | _filter_conf $QEMU_IMG info "json:{'file.driver':'rbd','file.pool':'rbd','file.image':'= bogus','file.conf':'${BOGUS_CONF}'}" 2>&1 | _filter_conf =20 +# Regression test: the qemu-img invocation is expected to fail, but it sho= uld +# not seg fault the parser. +$QEMU_IMG create "rbd:rbd/aa\/bb:conf=3D${BOGUS_CONF}" 1M 2>&1 | _filter_c= onf + # success, all done echo "*** done" rm -f $seq.full diff --git a/tests/qemu-iotests/231.out b/tests/qemu-iotests/231.out index 747dd221bb..a785a6e859 100644 --- a/tests/qemu-iotests/231.out +++ b/tests/qemu-iotests/231.out @@ -4,4 +4,7 @@ unable to get monitor info from DNS SRV with service name: = ceph-mon qemu-img: Could not open 'json:{'file.driver':'rbd','file.filename':'rbd:r= bd/bogus:conf=3DBOGUS_CONF'}': error connecting: No such file or directory unable to get monitor info from DNS SRV with service name: ceph-mon qemu-img: Could not open 'json:{'file.driver':'rbd','file.pool':'rbd','fil= e.image':'bogus','file.conf':'BOGUS_CONF'}': error connecting: No such file= or directory +Formatting 'rbd:rbd/aa\/bb:conf=3DBOGUS_CONF', fmt=3Draw size=3D1048576 +unable to get monitor info from DNS SRV with service name: ceph-mon +qemu-img: rbd:rbd/aa\/bb:conf=3DBOGUS_CONF: error connecting: No such file= or directory *** done --=20 2.30.2