From nobody Mon Feb 9 03:48:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1642679194; cv=none; d=zohomail.com; s=zohoarc; b=nhxlrWqj8DuzgMeH1mejJUudKmvIpcduu/ouCGL4tZXiG+AHKf9abBr6SrkZshtbIsqOXvWj6ikDGqljUS/jFaT85jLcasSZga4ejqKH9yu+wp13+n7rVR1AsV0H6x8YU+akDN5WThr/s6X3i9ov2kKiRNYKpu5k8ek6OCqhuHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1642679194; h=Content-Type:Content-Transfer-Encoding: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=Z5zI72ZU1x73V4szXQPIvhuc1E2ru76xYzPCrlgdTbE=; b=OXsMbT8AD+gzGGuZv5QFWAq5MTI9r8N2WLePrICsHy6qs1a1tKupio2KanO2FAGxAsPN+V6HTA1gfOC3rRV7FdWrvnWg9i+wneylJcoM19nWBxH8MUbGNSVB3t+ihRqaAheu6ghcRuu+Y0xpnYchiNw42Knzj56vEbSAEceGIt0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 164267919429629.863006315890175; Thu, 20 Jan 2022 03:46:34 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-52-f-aUdm6RNo-liDSk2lw24w-1; Thu, 20 Jan 2022 06:46:29 -0500 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 BABBB86A8B5; Thu, 20 Jan 2022 11:46:24 +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 9A31E7CD6F; Thu, 20 Jan 2022 11:46:24 +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 66B7E4A7C8; Thu, 20 Jan 2022 11:46:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20KBkDgi030249 for ; Thu, 20 Jan 2022 06:46:13 -0500 Received: by smtp.corp.redhat.com (Postfix) id 27C7A108F831; Thu, 20 Jan 2022 11:46:13 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89CC5108BEF4 for ; Thu, 20 Jan 2022 11:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642679193; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Z5zI72ZU1x73V4szXQPIvhuc1E2ru76xYzPCrlgdTbE=; b=MwhORqMfU3G0qsZSPosSsw0bHsTfBHzQqXqmT+veWr1AKLeX8jK02Jxd4aXTS1euS0sbC4 2In3TKpKCulmxbXUNR3JLEQrXeWydKNo/8xaMzWiN5D5yO9CwIH4ZVEF914xklgSMidTWc t6Yechlpx7codIXwCex3NuTeTe6gVNA= X-MC-Unique: f-aUdm6RNo-liDSk2lw24w-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 1/5] storage: Add debug logs for storage pool config loading Date: Thu, 20 Jan 2022 12:45:54 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.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 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1642679196226100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- src/conf/virstorageobj.c | 4 ++++ src/storage/storage_driver.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/conf/virstorageobj.c b/src/conf/virstorageobj.c index 02903ac487..815ada8584 100644 --- a/src/conf/virstorageobj.c +++ b/src/conf/virstorageobj.c @@ -1614,6 +1614,8 @@ virStoragePoolObjLoad(virStoragePoolObjList *pools, virStoragePoolObj *obj; g_autoptr(virStoragePoolDef) def =3D NULL; + VIR_DEBUG("loading storage pool config XML '%s'", path); + if (!(def =3D virStoragePoolDefParseFile(path))) return NULL; @@ -1655,6 +1657,8 @@ virStoragePoolObjLoadState(virStoragePoolObjList *poo= ls, if (!(stateFile =3D virFileBuildPath(stateDir, name, ".xml"))) return NULL; + VIR_DEBUG("loading storage pool state XML '%s'", stateFile); + if (!(xml =3D virXMLParseCtxt(stateFile, NULL, _("(pool state)"), &ctx= t))) return NULL; diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 4df2c75a2b..8dfa2497fc 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -156,6 +156,8 @@ storagePoolUpdateStateCallback(virStoragePoolObj *obj, active =3D false; } + VIR_DEBUG("updating state of storage pool '%s' active=3D%d", def->name= , active); + /* We can pass NULL as connection, most backends do not use * it anyway, but if they do and fail, we want to log error and * continue with other pools. --=20 2.34.1