From nobody Fri Apr 26 19:21:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1595838705; cv=none; d=zohomail.com; s=zohoarc; b=PESFDkeeL7zEQyToSHSUjVf+9J/VMnsOR/TjqsZTyMOLGZrvA60KfcD2zpulnABXuOIw5MnwZqKdSdAvtyZDN1ADirVg+wwN4WYALW/xTvlzzWznidH4fn0SnbKtcr4dO6em2NoqlGngE2dZUCSAd4oNzE5idB6FzsL73vu3+i0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595838705; 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; bh=FDNHg967hcvKe1SzdXd6pU/C+tC4T1ZpLrzP9TZCJoU=; b=AOp0jLKw6iaDQXMv1xVSkeF/mbG+9fWYnD6VCEtVzjBbvnmFEKqeMMx090KqzvUBtHmzvXTOKSTZz869JeNXoTT7hnHWk+G4mBwyOgYX0NPdopubdPQSyYrUKVDrsyF3UzJG6bklf07gcCWG+IGOUH65Y5kxxdroqFHopHwni6g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1595838705316714.8844944699987; Mon, 27 Jul 2020 01:31:45 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-251-zL2lC1PZN3S_oxKeHpwKsQ-1; Mon, 27 Jul 2020 04:31:41 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3E493100AA2F; Mon, 27 Jul 2020 08:31:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1D87572685; Mon, 27 Jul 2020 08:31:35 +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 DDE0D1806B0A; Mon, 27 Jul 2020 08:31:34 +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 06R8VUm6013622 for ; Mon, 27 Jul 2020 04:31:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id CF6B66842F; Mon, 27 Jul 2020 08:31:30 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.218]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E540610F3 for ; Mon, 27 Jul 2020 08:31:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595838704; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=FDNHg967hcvKe1SzdXd6pU/C+tC4T1ZpLrzP9TZCJoU=; b=hi5ei+jLYC5TJ4Va1vSmqZRG5CQg7XbmcH/GBq/GON61mWd9g1/CrUHC+NJRglSKdQz6Kx nTL+OOsF1OVgX7fgXZhP2zFFiJgxMYWPjYDDwBguksCXhcXpvhDQqwoRNVqrR5PjuSD/6z EubLm44nM749AlaCCaRVITW8BxMoveE= X-MC-Unique: zL2lC1PZN3S_oxKeHpwKsQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 4/4] virDevMapperGetTargets: Don't ignore EBADF Date: Mon, 27 Jul 2020 10:31:12 +0200 Message-Id: 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 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: , 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_cgroup.c | 2 +- src/qemu/qemu_domain.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index 914bf640ca..e88da02341 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -87,7 +87,7 @@ qemuSetupImagePathCgroup(virDomainObjPtr vm, } =20 if (virDevMapperGetTargets(path, &targetPaths) < 0 && - errno !=3D ENOSYS && errno !=3D EBADF) { + errno !=3D ENOSYS) { virReportSystemError(errno, _("Unable to get devmapper targets for %s"), path); diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 5b22eb2eaa..2058290870 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -10264,7 +10264,7 @@ qemuDomainSetupDisk(virQEMUDriverConfigPtr cfg G_GN= UC_UNUSED, return -1; =20 if (virDevMapperGetTargets(next->path, &targetPaths) < 0 && - errno !=3D ENOSYS && errno !=3D EBADF) { + errno !=3D ENOSYS) { virReportSystemError(errno, _("Unable to get devmapper targets fo= r %s"), next->path); @@ -11328,7 +11328,7 @@ qemuDomainNamespaceSetupDisk(virDomainObjPtr vm, tmpPath =3D g_strdup(next->path); =20 if (virDevMapperGetTargets(next->path, &targetPaths) < 0 && - errno !=3D ENOSYS && errno !=3D EBADF) { + errno !=3D ENOSYS) { virReportSystemError(errno, _("Unable to get devmapper targets fo= r %s"), next->path); --=20 2.26.2