lvm2/0001-lvm2-set-default-preferred_names.patch

30 lines
1.4 KiB
Diff
Raw Normal View History

2019-09-30 11:03:04 -04:00
diff --git a/conf/example.conf.in b/conf/example.conf.in
2021-11-22 16:14:59 +08:00
index a78ed73..245973a 100644
2019-09-30 11:03:04 -04:00
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
2021-11-22 16:14:59 +08:00
@@ -117,7 +117,7 @@ devices {
2019-09-30 11:03:04 -04:00
# Example
# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
2021-11-22 16:14:59 +08:00
#
2019-09-30 11:03:04 -04:00
- # This configuration option does not have a default value defined.
+ preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
2021-11-22 16:14:59 +08:00
# Configuration option devices/use_devicesfile.
# Enable or disable the use of a devices file.
2019-09-30 11:03:04 -04:00
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
2021-11-22 16:14:59 +08:00
index d280e7a..ab7d0d5 100644
2019-09-30 11:03:04 -04:00
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
2021-11-22 16:14:59 +08:00
@@ -257,7 +257,7 @@ cfg(devices_hints_CFG, "hints", devices_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_
2020-07-16 14:44:15 +08:00
" Use no hints.\n"
2019-09-30 11:03:04 -04:00
"#\n")
-cfg_array(devices_preferred_names_CFG, "preferred_names", devices_CFG_SECTION, CFG_ALLOW_EMPTY | CFG_DEFAULT_UNDEFINED , CFG_TYPE_STRING, NULL, vsn(1, 2, 19), NULL, 0, NULL,
+cfg_array(devices_preferred_names_CFG, "preferred_names", devices_CFG_SECTION, CFG_ALLOW_EMPTY, CFG_TYPE_STRING, "#S^/dev/mpath/#S^/dev/mapper/mpath#S^/dev/[hs]d", vsn(1, 2, 19), NULL, 0, NULL,
"Select which path name to display for a block device.\n"
"If multiple path names exist for a block device, and LVM needs to\n"
"display a name for the device, the path names are matched against\n"
2021-11-22 16:14:59 +08:00
--
1.8.3.1