9 Star 0 Fork 24

src-openEuler/python-blivet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-revert-Prefer-UUID-for-fstab-spec-for-DM-devices-too.patch 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
From d14af518e0031336861c8fdaeb3c4534e7c2fd6f Mon Sep 17 00:00:00 2001
From: s30028044 <sunhai10@huawei.com>
Date: Sat, 29 Jun 2024 16:53:26 +0800
Subject: [PATCH] revert Prefer UUID for fstab spec for DM devices too
revert the patch of "Prefer UUID for fstab spec for DM devices too"
Reference: https://github.com/storaged-project/blivet/commit/7aa07083dbc90b0fabea063ca5a19ee3d154b1b2
Conflict: https://github.com/storaged-project/blivet/commit/7aa07083dbc90b0fabea063ca5a19ee3d154b1b2
---
blivet/devices/dm.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/blivet/devices/dm.py b/blivet/devices/dm.py
index 4362f82..0ac5f01 100644
--- a/blivet/devices/dm.py
+++ b/blivet/devices/dm.py
@@ -97,6 +97,11 @@ class DMDevice(StorageDevice):
d.update({"target": self.target, "dm_uuid": self.dm_uuid})
return d
+ @property
+ def fstab_spec(self):
+ """ Return the device specifier for use in /etc/fstab. """
+ return self.path
+
@property
def map_name(self):
""" This device's device-mapper map name """
--
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

搜索帮助