!73 修复关于忽略隐藏设备的日志信息

From: @yue-yuankun 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-11-01 08:16:13 +00:00 committed by Gitee
commit 3d41a4d186
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From d4d8224637d6967418c62de61f8673d520e16243 Mon Sep 17 00:00:00 2001
From: Vojtech Trefny <vtrefny@redhat.com>
Date: Mon, 7 Dec 2020 18:48:36 +0100
Subject: [PATCH] Fix logging information about ignoring hidden devices
---
blivet/populator/populator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/populator/populator.py b/blivet/populator/populator.py
index 40623714..75bb1741 100644
--- a/blivet/populator/populator.py
+++ b/blivet/populator/populator.py
@@ -250,7 +250,7 @@ class PopulatorMixin(object):
log.info("scanning %s (%s)...", name, sysfs_path)
if udev.device_is_hidden(info):
- log.info("device %s is marked as hidden in sysfs, ignoring")
+ log.info("device %s is marked as hidden in sysfs, ignoring", name)
return
# make sure we note the name of every device we see
--
2.27.0

View File

@ -3,7 +3,7 @@
Name: python-blivet
Version: 3.2.2
Release: 9
Release: 10
Epoch: 1
Summary: A python module for system storage configuration
License: LGPLv2+
@ -30,6 +30,7 @@ Patch6004: backport-Remove-action-device-from-LVM-reject-list.patch
Patch6005: backport-Ignore-devices-marked-as-hidden-in-sysfs-1856974.patch
Patch6006: backport-Fix-reading-hidden-sysfs-attribute.patch
Patch6007: backport-Fix-logging-information-about-ignoring-hidden-device.patch
%description
The python-blivet package is a python module for examining and modifying
@ -130,6 +131,12 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install
%doc README
%changelog
* Thu Sep 1 2022 yueyuankun <yueyuankun@kylinos.cn> - 3.2.2-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix logging information about ignoring hidden devices
* Thu Aug 4 2022 wanglu <wanglu210@huawei.com> - 1:3.2.2-9
- Type:bugfix
- ID:NA