From nobody Mon Feb 9 13:58:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1565952009; cv=none; d=zoho.com; s=zohoarc; b=NPUTMEB/IBs2ijKYbrGQG/i59LSBPxwXjI7/E3Gi91SKohahTcNxffOVV2hdGPscfYgoSweEy+xxlVeQeTBVcwY+s/TZ5b2OV0K2ZOs6rpTr2/JaTPmWldEqWTArReoDP14GRHjBYfTqXM/jZjFYmszMJh1nCN/ooe9RdsBf4GI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565952009; h=Content-Type:Content-Transfer-Encoding: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:ARC-Authentication-Results; bh=jwZJkmYZl4jflD/WlU4I33jFBqMmyghfnWyC5cfsfc8=; b=I+ttcvk2ZCGz0y5bNBzat45NKBcm+9HloeOgpmY5nfjLBaQFnJYl77peA+mLKajt8n0ZxNMCpiUh7FSoG+YrKFWp2PxaeiCz5Ad1szWJ3fJw9sXs3Fx1XZqEkTIedSMcgcCrspL1Fhjc7/c5IQDaQMA2kM/EVmfh8Y/aBhiOwq8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1565952009385209.94051745093498; Fri, 16 Aug 2019 03:40:09 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0ACE63066F04; Fri, 16 Aug 2019 10:40:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D1892173C5; Fri, 16 Aug 2019 10:40:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 87ABB1C8A; Fri, 16 Aug 2019 10:40:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7GAdnr2021564 for ; Fri, 16 Aug 2019 06:39:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6F8589F6B; Fri, 16 Aug 2019 10:39:49 +0000 (UTC) Received: from angien.brq.redhat.com (unknown [10.43.2.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEC6560C5D for ; Fri, 16 Aug 2019 10:39:48 +0000 (UTC) From: Peter Krempa To: libvir-list@redhat.com Date: Fri, 16 Aug 2019 12:39:29 +0200 Message-Id: <78a5ddab21d76175a60f05b34b0a9a791f18bef9.1565951850.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 08/14] util: storagefile: Preserve return value in virStorageSourceParseBackingJSONUriStr X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 16 Aug 2019 10:40:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" virStorageSourceParseBackingURI will report special return values in some cases. Preserve it in virStorageSourceParseBackingJSONUriStr. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/util/virstoragefile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 4e57a0438e..192a79c025 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -3073,7 +3073,9 @@ virStorageSourceParseBackingJSONUriStr(virStorageSour= cePtr src, const char *uri, int protocol) { - if (virStorageSourceParseBackingURI(src, uri) < 0) + int rc; + + if ((rc =3D virStorageSourceParseBackingURI(src, uri)) < 0) return -1; if (src->protocol !=3D protocol) { @@ -3085,7 +3087,7 @@ virStorageSourceParseBackingJSONUriStr(virStorageSour= cePtr src, return -1; } - return 0; + return rc; } --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list