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

d16add
 conf/example.conf.in         | 5 +++--
a45b44
 lib/config/config_settings.h | 2 +-
d16add
 2 files changed, 4 insertions(+), 3 deletions(-)
a45b44
a45b44
diff --git a/conf/example.conf.in b/conf/example.conf.in
d16add
index b4a55ae..aaf73a4 100644
a45b44
--- a/conf/example.conf.in
a45b44
+++ b/conf/example.conf.in
d16add
@@ -121,8 +121,9 @@ devices {
d16add
 	#
76f3a8
 	# Example
a45b44
 	# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
d16add
-	#
a45b44
-	# This configuration option does not have a default value defined.
d16add
+	# 
a45b44
+	# This configuration option has an automatic default value.
a45b44
+	# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
a45b44
 
d16add
 	# Configuration option devices/use_devicesfile.
d16add
 	# Enable or disable the use of a devices file.
a45b44
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
d16add
index d3a42a1..f5dac4d 100644
a45b44
--- a/lib/config/config_settings.h
a45b44
+++ b/lib/config/config_settings.h
a45b44
@@ -269,7 +269,7 @@ cfg(devices_hints_CFG, "hints", devices_CFG_SECTION, CFG_DEFAULT_COMMENTED, CFG_
a45b44
 	"    Use no hints.\n"
a45b44
 	"#\n")
a45b44
 
a45b44
-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,
76f3a8
+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,
a45b44
 	"Select which path name to display for a block device.\n"
a45b44
 	"If multiple path names exist for a block device, and LVM needs to\n"
a45b44
 	"display a name for the device, the path names are matched against\n"