From nobody Mon Feb 9 21:20:05 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155266307238832.98440596366959; Fri, 15 Mar 2019 08:17:52 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id B580CAB099; Fri, 15 Mar 2019 15:17:50 +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 900C560C6C; Fri, 15 Mar 2019 15:17:50 +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 42E64181A009; Fri, 15 Mar 2019 15:17:50 +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 x2FFHc0Q001277 for ; Fri, 15 Mar 2019 11:17:38 -0400 Received: by smtp.corp.redhat.com (Postfix) id 067EB891D; Fri, 15 Mar 2019 15:17:38 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 006C419C79 for ; Fri, 15 Mar 2019 15:17:37 +0000 (UTC) Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C76E988AA3 for ; Fri, 15 Mar 2019 15:17:37 +0000 (UTC) Received: by mail-qk1-f198.google.com with SMTP id x63so8037631qka.5 for ; Fri, 15 Mar 2019 08:17:37 -0700 (PDT) Received: from cube-1.lan (pool-96-241-25-63.washdc.fios.verizon.net. [96.241.25.63]) by smtp.gmail.com with ESMTPSA id o8sm1210850qkg.6.2019.03.15.08.17.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Mar 2019 08:17:35 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=/Rf4TDaASBCHenRime0A+okVz6JjhfSB7bOU7KXHAV0=; b=oVw4zBrq+vrXflGtbKiugxlDAyzg8bh+WWIWshcXkroUfH3bueh9BYC0pb9iDfDBjh Cf4wNMU9OxZc4BipRuXTbA9hbasI9xRGchQED1RjaAoMCw6RIPvumdCHIufa55h4NMBl NswHeFNI+8oDTYFGJ1zanHWNW8YBRFS5fWiBZ0h4S8zSp5tYFo5grRFNVoOs0KMFmCIv CpY7jq9HWYLlyPfFpXq/wn0h94Z37oCzFiCMVr/kRxlw9ZNkg4+UO1kj/nqiBJ8Md99T COl0BIJG7kEhvRPeb4orX3FmenhVcusrLz7Z662Y0/syCK77cQXpdtwfK+Z8rtGWsNlQ KoRQ== X-Gm-Message-State: APjAAAUWtJk3HpnAV3VuMAloP8tMLesJwNfrkb5OW9BYC5DjlzLKezns 1Ui37W7AIJUFi+ztlXjISCY+gJ8yjIfyWDGjiO2Rko2Nd8XxrWAaAH8fFoiWuxyjthLoEVat+5K XlyWcegRnwFGviI2/7VU= X-Received: by 2002:ac8:1481:: with SMTP id l1mr3321202qtj.226.1552663056757; Fri, 15 Mar 2019 08:17:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/HWtphwClkXruNIT92zKhWHlG+HQm71TVT7gquGJr7DHz+owz+TjUovfCqrmyVHZD/ASaGg== X-Received: by 2002:ac8:1481:: with SMTP id l1mr3321181qtj.226.1552663056562; Fri, 15 Mar 2019 08:17:36 -0700 (PDT) From: jdillama@redhat.com X-Google-Original-From: dillaman@redhat.com To: libvir-list@redhat.com Date: Fri, 15 Mar 2019 11:17:25 -0400 Message-Id: <20190315151725.1068-4-dillaman@redhat.com> In-Reply-To: <20190315151725.1068-1-dillaman@redhat.com> References: <20190315151725.1068-1-dillaman@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: Jason Dillaman Subject: [libvirt] [PATCH 3/3] rbd: optionally compute volume allocation from capacity 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 15 Mar 2019 15:17:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" From: Jason Dillaman Use the new 'refresh_volume_allocation' pool override to skip computing the actual volume usage if disabled. Signed-off-by: Jason Dillaman --- src/storage/storage_backend_rbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backen= d_rbd.c index e67911f928..1b01fbb3a8 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -564,7 +564,8 @@ volStorageBackendRBDRefreshVolInfo(virStorageVolDefPtr = vol, vol->type =3D VIR_STORAGE_VOL_NETWORK; vol->target.format =3D VIR_STORAGE_FILE_RAW; =20 - if (volStorageBackendRBDUseFastDiff(features, flags)) { + if (def->refresh_volume_allocation =3D=3D VIR_STORAGE_VOL_REFRESH_ALLO= CATION_DEFAULT && + volStorageBackendRBDUseFastDiff(features, flags)) { VIR_DEBUG("RBD image %s/%s has fast-diff feature enabled. " "Querying for actual allocation", def->source.name, vol->name); --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list