9 Star 0 Fork 24

src-openEuler/python-blivet

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
backport-Fix-intel-biosraid-cant-get-device-name-causing-crashed.patch 1.30 KB
Copy Edit Raw Blame History
From 9d7d0428c81ce592c807f2cefcf7228a1b3d8789 Mon Sep 17 00:00:00 2001
From: "Yurii.Huang" <yurii.huang@dbappsecurity.com.cn>
Date: Wed, 21 Aug 2024 18:31:04 +0800
Subject: [PATCH] Fix intel biosraid can't get device name causing crashed
crashed with DiskDevice get members property
trace: 'DiskDevice' object has no attribute 'members'
changed: when ID_FS_TYPE is isw_raid_member use SYS_NAME to device name
Reference:https://github.com/storaged-project/blivet/commit/9d7d0428c81ce592c807f2cefcf7228a1b3d8789
Conflict:NA
---
blivet/udev.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/udev.py b/blivet/udev.py
index 70fc722f5..667e1f3c9 100644
--- a/blivet/udev.py
+++ b/blivet/udev.py
@@ -243,6 +243,10 @@ def device_get_name(udev_info):
elif device_get_format(udev_info) == "linux_raid_member":
# MD RAID member -> use SYS_NAME
name = udev_info["SYS_NAME"]
+ elif device_get_format(udev_info) == "isw_raid_member":
+ # intel software biosraid
+ # MD RAID member -> use SYS_NAME
+ name = udev_info["SYS_NAME"]
elif device_is_partition(udev_info):
# partition on RAID -> construct name from MD_DEVNAME + partition number
# for partitions on named RAID we want to use the raid name, not
--
2.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-blivet.git
git@gitee.com:src-openeuler/python-blivet.git
src-openeuler
python-blivet
python-blivet
master

Search