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

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