From nobody Sat Feb 7 08:07:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1600349603; cv=none; d=zohomail.com; s=zohoarc; b=TCVwUpGzjQVhwRWi/tuyHSwIx8KeVdx1HQ+nEqTjohelRvs5Ad+86i+48orV/vyIw20zPIpFA7uyoM8Y2CBPpPiXT5Aeun1+o3XF2jr10SVWVSjLHa36sD8aVCZ4iVKRhDdzWXmhdQJXKXPPMN3/WssSSObUWaaL1oSlbdOPkdk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600349603; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=gc4bPfkdVah5CeXmJyl/rwckN5docj/c1JhbMds3NvI=; b=IEZ1tNv6GVVNIb17isK0RDObVhh5uffDmi7T9Ret0W3i5PKiZ4Duqw3bkZ1qP6ZnEP4hP33UBMM2kYu+3+DWbKdjfYYcf0TEvKgSRt7YgqOg9zIjbRyXpKfIoH490VDZpJLJKulBzxV0s7lROiGTqbPtFuZLBYarkIVE5s/T7Bo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1600349603891659.5775989698034; Thu, 17 Sep 2020 06:33:23 -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-425-dLiwVZ6ZPrmyb0V0rZkrQA-1; Thu, 17 Sep 2020 09:33:20 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 004BF104D3E8; Thu, 17 Sep 2020 13:33:14 +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 CBE6819D7C; Thu, 17 Sep 2020 13:33:13 +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 91E4D183D044; Thu, 17 Sep 2020 13:33:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08HDVC8n006208 for ; Thu, 17 Sep 2020 09:31:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6AAB8100C286; Thu, 17 Sep 2020 13:31:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5FBD6115D7BC for ; Thu, 17 Sep 2020 13:31:07 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7EAAB85828D for ; Thu, 17 Sep 2020 13:31:07 +0000 (UTC) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-429-GKUD2WSyMnSKaYhWE0kPZw-1; Thu, 17 Sep 2020 09:30:59 -0400 Received: by mail-qt1-f194.google.com with SMTP id b2so1798551qtp.8; Thu, 17 Sep 2020 06:30:59 -0700 (PDT) Received: from localhost (209-6-122-159.s2973.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [209.6.122.159]) by smtp.gmail.com with ESMTPSA id n1sm1602224qte.91.2020.09.17.06.30.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2020 06:30:58 -0700 (PDT) X-MC-Unique: dLiwVZ6ZPrmyb0V0rZkrQA-1 X-MC-Unique: GKUD2WSyMnSKaYhWE0kPZw-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; bh=gc4bPfkdVah5CeXmJyl/rwckN5docj/c1JhbMds3NvI=; b=L54IKbDyIUYa2eSm1Fe+fJb2oO+kx8pqbob3VCgmpe58rmQIG9KJXkG0uTLEYG6XJb RlrkQ25aomdUZoyjlK5VyN8irMN9jZgzOouamgEirXW9fn5NIeTx/XI6UsdnwtbhFVcd lH9lOsCc6a9n/ieWqtXkjsOuVcygl8IRdd8aKqDyUiP4hnDA/HXOhh7G/QyEpoqJlb4C cc92jwL/cbSIWfC79dRfcrUiKqgNCBLVqFDhTEKPm4nzxPltBU+YK1pZ0hFojf4w1qqt TSPZfG0Sa/j0dph0+lKs395D4aQr3yoDvTu69otbsPEfZVu+SBt0LlNezKOfx0LT+wce Iq1g== X-Gm-Message-State: AOAM5308fLrms44oJgfQ5w/4nTUSUbjPbtVyXPJPkh5a7ABXddqx0RJR U9YHIPT4rJgxPZp3hvO9CXBYwu/SZA== X-Google-Smtp-Source: ABdhPJx6EBkeJDpCwB82CvUqFIVxcaguEnxHgj1ozTnAYf3sx/QDDnqLEB56TkCOYjl5Omw7VCfj8Q== X-Received: by 2002:aed:3584:: with SMTP id c4mr26522772qte.84.1600349458888; Thu, 17 Sep 2020 06:30:58 -0700 (PDT) From: Masayoshi Mizuma To: libvirt-list@redhat.com, Eric Blake , Peter Krempa Subject: [PATCH v3 1/6] qemu: Block blockjobs when transient disk option is enabled Date: Thu, 17 Sep 2020 09:30:40 -0400 Message-Id: <20200917133045.5719-2-msys.mizuma@gmail.com> In-Reply-To: <20200917133045.5719-1-msys.mizuma@gmail.com> References: <20200917133045.5719-1-msys.mizuma@gmail.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Cc: Masayoshi Mizuma , Masayoshi Mizuma , qemu-block@nongnu.org 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.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Masayoshi Mizuma Signed-off-by: Masayoshi Mizuma Reviewed-by: Peter Krempa --- src/qemu/qemu_domain.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 785cee6f18..1ce0f70971 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -10794,6 +10794,13 @@ qemuDomainDiskBlockJobIsSupported(virDomainObjPtr = vm, return false; } =20 + if (disk->transient) { + virReportError(VIR_ERR_OPERATION_UNSUPPORTED, + _("block jobs are not supported on transient disk '= %s'"), + disk->dst); + return false; + } + return true; } =20 --=20 2.27.0