lvm2/lvm2-set-default-preferred_names.patch

31 lines
1.6 KiB
Diff
Raw Normal View History

conf/example.conf.in | 2 +-
2015-05-04 12:47:56 +00:00
lib/config/config_settings.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
2015-05-04 12:47:56 +00:00
diff --git a/conf/example.conf.in b/conf/example.conf.in
index e809488..cebf464 100644
2015-05-04 12:47:56 +00:00
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -92,7 +92,7 @@ devices {
2015-05-04 12:47:56 +00:00
# Example:
# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
# This configuration option does not have a default value defined.
2015-05-04 12:47:56 +00:00
- # preferred_names=[]
+ preferred_names=[ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
2015-05-04 12:47:56 +00:00
# Configuration option devices/filter.
# Limit the block devices that are used by LVM commands.
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index 885a2fa..97cf3b3 100644
2015-05-04 12:47:56 +00:00
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -202,7 +202,7 @@ cfg(devices_external_device_info_source_CFG, "external_device_info_source", devi
2015-05-04 12:47:56 +00:00
"udev - Reuse existing udev database records. Applicable\n"
"only if LVM is compiled with udev support.\n")
-cfg_array(devices_preferred_names_CFG, "preferred_names", devices_CFG_SECTION, CFG_ALLOW_EMPTY | CFG_DEFAULT_COMMENTED , 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_DEFAULT_COMMENTED , CFG_TYPE_STRING, "S^/dev/mpath/#S^/dev/mapper/mpath#S/dev/[hs]d", vsn(1, 2, 19), NULL, 0, NULL,
2015-05-04 12:47:56 +00:00
"Select which path name to display for a block device.\n"
"If multiple path names exist for a block device,\n"
"and LVM needs to display a name for the device,\n"