From nobody Mon Feb 9 09:09:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1598623878; cv=none; d=zohomail.com; s=zohoarc; b=fOfBdBIj5W7uU+YnHaMjEQ2OSBehrpWV4lejU/mwWG57lv0wy5vrOqcITGdatWFcD3LZd0DOcXkTB04/OaobOjb2U0bOCIE5Py1aA0BBwBxoH0Bv2AUr+U7S646/jKjOk4CVxIH1Hp5KlAd2SqpBkIUYorVxDcvg2xueTR+aqqk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598623878; 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=sl0ecYHQ4yUqIsvD/YpjRe0Byew+z3XNvgRaEwuZZwY=; b=S84UR8MnyOUoHVSInHdpwP/tbqmvgJHN04SRVElET7NGE2Xl+s9Flz4MpZZa+vQY3By0nZr8ddqzf4X/8BYQfiAcMU/fslViQYFRYHOKfbYQI27D6FSyzeg21WrOgcKm0sqxcG897la5D+xNRtrVf/0tE09SNq6m0exIq3kT5zo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1598623878107951.9809353124788; Fri, 28 Aug 2020 07:11:18 -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-348-95v4rOfTOtWGV9LJEBvjzw-1; Fri, 28 Aug 2020 10:11:13 -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 48D07801AAC; Fri, 28 Aug 2020 14:11:06 +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 281928092A; Fri, 28 Aug 2020 14:11:06 +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 E6AF8181A272; Fri, 28 Aug 2020 14:11:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07SEAu25028179 for ; Fri, 28 Aug 2020 10:10:56 -0400 Received: by smtp.corp.redhat.com (Postfix) id 68D712156A2D; Fri, 28 Aug 2020 14:10:56 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 633482156A23 for ; Fri, 28 Aug 2020 14:10:56 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.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 496C3901841 for ; Fri, 28 Aug 2020 14:10:56 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-4bxULPNiPxatnGvlGSQgJg-1; Fri, 28 Aug 2020 10:10:48 -0400 Received: by mail-qk1-f196.google.com with SMTP id z3so1023519qkz.7; Fri, 28 Aug 2020 07:10:48 -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 d47sm1094341qta.63.2020.08.28.07.10.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Aug 2020 07:10:47 -0700 (PDT) X-MC-Unique: 95v4rOfTOtWGV9LJEBvjzw-1 X-MC-Unique: 4bxULPNiPxatnGvlGSQgJg-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=sl0ecYHQ4yUqIsvD/YpjRe0Byew+z3XNvgRaEwuZZwY=; b=H7zV/A1qN006XEVlNDVUJh3ElpG1jV5mjreSPXZK+TmzFDpsC8DNarJu5u0vbK9w6E adnC0RrORpv0BnxpvUOP2QzhjEGl2NK1uxiYISp8XotpfAVhnbGgrdSNmH77/M0JZCEo /885X2nuK9wRuyhZ4xrNn7soFDTD1rkxk7rQA5WMMnlz6wiKUe2fvaDnU9BH0lxbtvTs cXsh5xhsJKQcH1ru2ES8MDZ3e40iWERIoubZ4XOGWGIJyeGDTjO5IpI8qyZnCBb0tTl4 NyIbADYz3agPPbW90EBNYsuTqLiyU3f6OlQsL068+zkpFa8y0IcG4RURV/Lc9I4Qts6L 2dNw== X-Gm-Message-State: AOAM533I8heKnPYU3j+qS3bx6FiDtRubF31TwUYKsmAtCF4Rh7Wufnz5 VrePZDgWoSYuM+sVNm5wtyA70ITwOYDv X-Google-Smtp-Source: ABdhPJzWtENzTgfDZ4iHeXJo++kOUXWYOW6SrqnMwsoaV0lMHTiOoXBsB3Vtt88vWGdveKqvSeEl5Q== X-Received: by 2002:a05:620a:2224:: with SMTP id n4mr1397392qkh.18.1598623847736; Fri, 28 Aug 2020 07:10:47 -0700 (PDT) From: Masayoshi Mizuma To: libvirt-list@redhat.com, Eric Blake , Peter Krempa Subject: [PATCH v2 7/7] qemu: Block blockjobs when transient disk option is enabled Date: Fri, 28 Aug 2020 10:08:34 -0400 Message-Id: <20200828140836.14266-6-msys.mizuma@gmail.com> In-Reply-To: <20200828140836.14266-1-msys.mizuma@gmail.com> References: <20200828140836.14266-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.6 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.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 2.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Masayoshi Mizuma Block blockjobs when transient disk option is enabled so far. Signed-off-by: Masayoshi Mizuma --- 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 e28f704dba..98a52e5476 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -10678,6 +10678,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