mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-set-default-preferred_names.patch

d6c8c5
 conf/example.conf.in         | 2 +-
d6c8c5
 lib/config/config_settings.h | 2 +-
d6c8c5
 2 files changed, 2 insertions(+), 2 deletions(-)
d6c8c5
d6c8c5
diff --git a/conf/example.conf.in b/conf/example.conf.in
d6c8c5
index aab274d..4894d04 100644
d6c8c5
--- a/conf/example.conf.in
d6c8c5
+++ b/conf/example.conf.in
d6c8c5
@@ -106,7 +106,7 @@ devices {
d6c8c5
 	# Example
d6c8c5
 	# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
d6c8c5
 	# 
d6c8c5
-	# This configuration option does not have a default value defined.
d6c8c5
+	preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
d6c8c5
 
d6c8c5
 	# Configuration option devices/filter.
d6c8c5
 	# Limit the block devices that are used by LVM commands.
d6c8c5
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
d6c8c5
index 077fb15..65cda08 100644
d6c8c5
--- a/lib/config/config_settings.h
d6c8c5
+++ b/lib/config/config_settings.h
d6c8c5
@@ -255,7 +255,7 @@ cfg(devices_external_device_info_source_CFG, "external_device_info_source", devi
d6c8c5
 	"    compiled with udev support.\n"
d6c8c5
 	"#\n")
d6c8c5
 
d6c8c5
-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,
d6c8c5
+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,
d6c8c5
 	"Select which path name to display for a block device.\n"
d6c8c5
 	"If multiple path names exist for a block device, and LVM needs to\n"
d6c8c5
 	"display a name for the device, the path names are matched against\n"