From nobody Sun May 19 03:02:45 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=1598453811; cv=none; d=zohomail.com; s=zohoarc; b=g+Z+179i0CJCYYpAzp+xzSQd5UhB0xQyzR6SBu/NoRkFU+lN/wMoHOMglum9gYaBczo5iAdZL+CxWfMmxoPqoTdNKJGZDelgQ8ZGxkB5cBs6hSwWYmGUqrWVoscfXcEjVwC9JVQsxCy4fE9qZRjBVYbO9HN2K10ir3NaubUsxys= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598453811; 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=iGarD6jEm07wMqDZviCZR2+xtLTMAeL9piIRqdnj0oo=; b=lonBnYad85vtPCfpDkUeg0L/1dvccKHDaPwMoyueZFw+u2UBttkmrL+dN4J+Mr1nRRxrHq9RA1YjwFCSA7i9P45qTRzHDSViAy1HvDsK9n5g90rR52DWgZ7evxIBbf2EzC8O1GAJSRjsZ75wmmkHIFWIw7k/bYB3HW42zbZtsKc= 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 159845381123530.405515125784632; Wed, 26 Aug 2020 07:56:51 -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-155-DoCCWTuzMNmoIvB1PcleVg-1; Wed, 26 Aug 2020 10:56:47 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DB18B189E608; Wed, 26 Aug 2020 14:56:40 +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 957BD50EB6; Wed, 26 Aug 2020 14:56:40 +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 5AE77662D9; Wed, 26 Aug 2020 14:56:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07QEuWAo006337 for ; Wed, 26 Aug 2020 10:56:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id DCD0919744; Wed, 26 Aug 2020 14:56:32 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEA6719C78; Wed, 26 Aug 2020 14:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598453810; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=iGarD6jEm07wMqDZviCZR2+xtLTMAeL9piIRqdnj0oo=; b=byqIzaTXhGdjWzmslwZy9M7189bT+wE/rXTMnf5L6iQW+umDZvyfqLnjYmK0yrV9eFtnNl M1jzdnr8q3AGMoZUMUUiOxC/qtm/KL7IDx31C3JCSDl0f69VBNvRoGmWcIX7amyb+khD55 MK20wiHnbxDXEV2hdBzvrErNqhYX2Oo= X-MC-Unique: DoCCWTuzMNmoIvB1PcleVg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [RFC PATCH 1/3] qemu: monitor: Detect image cluster size from 'query-named-block-nodes' Date: Wed, 26 Aug 2020 16:56:18 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: kwolf@redhat.com, yoonho@gmail.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.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Configuring the cluster size of an image may have performance implications. This patch allows us to detect cluster size for existing images so that we will be able to propagate it to new images which are based on existing images e.g. during snapshots/block-copy/etc. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- src/qemu/qemu_monitor.h | 3 +++ src/qemu/qemu_monitor_json.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h index d20a15c202..369d63ce12 100644 --- a/src/qemu/qemu_monitor.h +++ b/src/qemu/qemu_monitor.h @@ -696,6 +696,9 @@ struct _qemuBlockNamedNodeData { qemuBlockNamedNodeDataBitmapPtr *bitmaps; size_t nbitmaps; + + /* the cluster size of the image is valid only when > 0 */ + unsigned long long clusterSize; }; virHashTablePtr diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 9cdf6c0f7f..e6d2e7d4db 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -2997,6 +2997,9 @@ qemuMonitorJSONBlockGetNamedNodeDataWorker(size_t pos= G_GNUC_UNUSED, if (virJSONValueObjectGetNumberUlong(img, "actual-size", &ent->physica= l) < 0) ent->physical =3D ent->capacity; + /* try looking up the cluster size */ + ignore_value(virJSONValueObjectGetNumberUlong(img, "cluster-size", &en= t->clusterSize)); + if ((bitmaps =3D virJSONValueObjectGetArray(val, "dirty-bitmaps"))) qemuMonitorJSONBlockGetNamedNodeDataBitmaps(bitmaps, ent); --=20 2.26.2 From nobody Sun May 19 03:02:45 2024 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.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=1598453825; cv=none; d=zohomail.com; s=zohoarc; b=gvx+qCVTi8XHhpq3xOSvgBpZ8HS0aSoyYn8i+9ec6xamiHbFtjnfqTBq8xN7e0KKTRjmw/6QUvNp2GZ+/4bbccI0VsWI9Wf0x29+7D2+xBTfrlzpRAkYcO08cZLz55/gPZsjWHNfGlolcB+f+lJY3f9r9k60BVw2TAXGE/eLhbU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598453825; 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=PCZ+T6wvPSUbfHJsaUtAtYROZEQZg5pXEpGyKQ/8PwA=; b=V7kCoPJLLUj3VTELdIJJRpdOf5s+K173VX5WysQcNwFfUTzNrGbAVLrahUstDbHCvgUm8CTkJ0RdgowS2er6JGYg+0WzXC20tvHBkzcbk9UmN6VIM7muRsNbKSCb6vp+OZ8qefeOtsu7anf6KbEY4YoKFlDgEksZRGhjI4hDV/8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.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 [205.139.110.120]) by mx.zohomail.com with SMTPS id 159845382515944.54636675196343; Wed, 26 Aug 2020 07:57:05 -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-281-JuoOlFQJMmCR4lfsBRyEqg-1; Wed, 26 Aug 2020 10:56:47 -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 0AD0B85C70A; Wed, 26 Aug 2020 14:56:42 +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 D93801972B; Wed, 26 Aug 2020 14:56:41 +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 AA9EE668E7; Wed, 26 Aug 2020 14:56:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07QEuehe006355 for ; Wed, 26 Aug 2020 10:56:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id 658F819C78; Wed, 26 Aug 2020 14:56:40 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 37BE91972B; Wed, 26 Aug 2020 14:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598453823; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PCZ+T6wvPSUbfHJsaUtAtYROZEQZg5pXEpGyKQ/8PwA=; b=WmjyZHCVwhtuDxTrRBMan+aXjC1h/YapbA9siUAFnl6mQ7HdrW22Ly3HArgwUTTXDlPl8+ JHlDcPRhSbxSzmhhp0FGOwLOHJSglns465J49ORdZ+QSoTFvkgDB78etGypQXzI8EpwVWx RYSXbHpzfOFXxDsjYrS1t//7Uc9eQlk= X-MC-Unique: JuoOlFQJMmCR4lfsBRyEqg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [RFC PATCH 2/3] qemu: block: Allow specifying cluster size when using 'blockdev-create' Date: Wed, 26 Aug 2020 16:56:19 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: kwolf@redhat.com, yoonho@gmail.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.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: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" 'blockdev-create' allows us to create the image with a custom cluster size if we wish to. Wire it up for 'qcow2'. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- src/qemu/qemu_block.c | 1 + src/util/virstoragefile.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index 26c1b42428..0113c64f0f 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -2315,6 +2315,7 @@ qemuBlockStorageSourceCreateGetFormatPropsQcow2(virSt= orageSourcePtr src, "s:file", src->nodestorage, "U:size", src->capacity, "S:version", qcow2version, + "P:cluster-size", src->clusterSize, NULL) < 0) return -1; diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h index f73b3ee005..87763cf389 100644 --- a/src/util/virstoragefile.h +++ b/src/util/virstoragefile.h @@ -318,6 +318,7 @@ struct _virStorageSource { unsigned long long capacity; /* in bytes, 0 if unknown */ unsigned long long allocation; /* in bytes, 0 if unknown */ unsigned long long physical; /* in bytes, 0 if unknown */ + unsigned long long clusterSize; /* in bytes, 0 if unknown */ bool has_allocation; /* Set to true when provided in XML */ size_t nseclabels; --=20 2.26.2 From nobody Sun May 19 03:02:45 2024 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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=1598453823; cv=none; d=zohomail.com; s=zohoarc; b=D0nJqR3Cg4iopYQ5fQafTg+qikIXylVca0OqS7aT1X2ZhuyMqsf7Bx6p4uYkP1SEhQW2+dXHPa0idLE+blQ74ZQUviMmNmv0y7/mQ5nENLzUool6mjiycUfFPh+FhE8uoFzw+tLJakQWcT2vUeMc/AI14vrEVZQEgTIIZapcyNw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598453823; 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=6oVQzJvW9FxfnQ/bZ/blj7VSZsiPlbVKqQC/x1AD5S0=; b=jEj08CBcTO50nuTN0zqfK8/+/uxzr03uYtTBUIStlKfjnNOkiNuOW4xHNfL4UXWPiIHrKmOUu66M6lJjwSbScWqnCgRa3As+0E+SleL1eBZhHJVFmreQ6iiPpUOBHiAd0lS7z89LHZuKhSvoXVnYe0KDIyGCfmHvROzFOcowL9U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1598453823320877.2804873736503; Wed, 26 Aug 2020 07:57:03 -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-561-7Cg2W3nQPiSL_7zZ8lL63Q-1; Wed, 26 Aug 2020 10:57:00 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CB157425D1; Wed, 26 Aug 2020 14:56:54 +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 A645A60C13; Wed, 26 Aug 2020 14:56:54 +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 759A8668F7; Wed, 26 Aug 2020 14:56:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 07QEuq8v006412 for ; Wed, 26 Aug 2020 10:56:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id C420F19746; Wed, 26 Aug 2020 14:56:52 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 05E721992F; Wed, 26 Aug 2020 14:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598453822; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6oVQzJvW9FxfnQ/bZ/blj7VSZsiPlbVKqQC/x1AD5S0=; b=GR1zxiinOVWdawXrk0NQPqRWu/33YZke82ofXWLg1M21TmcXhAI3la3tKIdhtzpJfglQ8l S0WyIxUus4JtS3FKCl7C9/kpQbgXVYefA2a23dTIhtvLQ+OLQZHxZ2nGBIleuLfGCtshO1 R9UzjQPr3++2tuwVtBeHnmV1oyfTkB8= X-MC-Unique: 7Cg2W3nQPiSL_7zZ8lL63Q-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [RFC PATCH 3/3] qemuBlockStorageSourceCreateDetectSize: Propagate cluster size for 'qcow2' Date: Wed, 26 Aug 2020 16:56:20 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: kwolf@redhat.com, yoonho@gmail.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.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Propagate the cluster size from the original image as the user might have configured a custom cluster size for performance reasons. Propagate the cluster size of a qcow2 image to the new overlay or copy. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- src/qemu/qemu_block.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index 0113c64f0f..6e8fe545b4 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -2789,6 +2789,11 @@ qemuBlockStorageSourceCreateDetectSize(virHashTableP= tr blockNamedNodeData, return -1; } + /* propagate cluster size if the images are compatible */ + if (templ->format =3D=3D VIR_STORAGE_FILE_QCOW2 && + src->format =3D=3D VIR_STORAGE_FILE_QCOW2) + src->clusterSize =3D entry->clusterSize; + if (src->format =3D=3D VIR_STORAGE_FILE_RAW) { src->physical =3D entry->capacity; } else { --=20 2.26.2