From nobody Sat Apr 20 15:33:13 2024 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 150159519698885.13780463114176; Tue, 1 Aug 2017 06:46:36 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 97720601B8; Tue, 1 Aug 2017 13:46:34 +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 70A086D29A; Tue, 1 Aug 2017 13:46:34 +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 E3AC4180B467; Tue, 1 Aug 2017 13:46:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v71DhQVa019411 for ; Tue, 1 Aug 2017 09:43:26 -0400 Received: by smtp.corp.redhat.com (Postfix) id CAFC467019; Tue, 1 Aug 2017 13:43:26 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C1E5169401 for ; Tue, 1 Aug 2017 13:43:26 +0000 (UTC) Received: from sdstack.com (92-255-100-1.customer.comfortel.pro [92.255.100.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C6C440834 for ; Tue, 1 Aug 2017 13:43:24 +0000 (UTC) Received: from vtolstov by sdstack.com with local (Exim 4.87) (envelope-from ) id 1dcXBX-0002BL-Oi for libvir-list@redhat.com; Tue, 01 Aug 2017 16:26:07 +0300 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 97720601B8 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=selfip.ru Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 97720601B8 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4C6C440834 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=selfip.ru Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=vtolstov@sdstack.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4C6C440834 From: Vasiliy Tolstov To: libvir-list@redhat.com Date: Tue, 1 Aug 2017 16:26:07 +0300 Message-Id: <20170801132607.8330-2-v.tolstov@selfip.ru> In-Reply-To: <20170801132607.8330-1-v.tolstov@selfip.ru> References: <20170801132607.8330-1-v.tolstov@selfip.ru> X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 01 Aug 2017 13:43:25 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 01 Aug 2017 13:43:25 +0000 (UTC) for IP:'92.255.100.1' DOMAIN:'92-255-100-1.customer.comfortel.pro' HELO:'sdstack.com' FROM:'vtolstov@sdstack.com' RCPT:'' X-RedHat-Spam-Score: 0.364 (HEADER_FROM_DIFFERENT_DOMAINS, RDNS_DYNAMIC) 92.255.100.1 92-255-100-1.customer.comfortel.pro 92.255.100.1 92-255-100-1.customer.comfortel.pro X-Scanned-By: MIMEDefang 2.78 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] activate and refresh logical volumes while refreshing logical pool 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: , MIME-Version: 1.0 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.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 01 Aug 2017 13:46:35 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Vasiliy Tolstov --- src/storage/storage_backend_logical.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/storage/storage_backend_logical.c b/src/storage/storage_ba= ckend_logical.c index 67f70e551729..0c34476de38e 100644 --- a/src/storage/storage_backend_logical.c +++ b/src/storage/storage_backend_logical.c @@ -811,6 +811,25 @@ virStorageBackendLogicalRefreshPool(virConnectPtr conn= ATTRIBUTE_UNUSED, =20 virWaitForDevices(); =20 + cmd =3D virCommandNewArgList("vgchange", + "-aay", + pool->def->source.name, + NULL); + if (virCommandRun(cmd, NULL) < 0) + goto cleanup; + + virCommandFree(cmd); + + cmd =3D virCommandNewArgList("vgchange", + "--refresh", + pool->def->source.name, + NULL); + if (virCommandRun(cmd, NULL) < 0) + goto cleanup; + + virCommandFree(cmd); + + /* Get list of all logical volumes */ if (virStorageBackendLogicalFindLVs(pool, NULL) < 0) goto cleanup; --=20 2.9.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list