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

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