summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2017-03-29 15:37:32 +0200
committerMarian Csontos <mcsontos@redhat.com>2018-01-22 19:32:30 +0100
commit16eae417e9495adba5d9a94b3105c9c9d6126e41 (patch)
tree87aef3fe189eddaa93b98f00a7396b7cf6924b42
parentc222e508a89ac5a9dfb974eedce341868567c2ef (diff)
downloadlvm2-16eae417e9495adba5d9a94b3105c9c9d6126e41.tar.gz
lvm2-set-default-preferred_names
-rw-r--r--conf/example.conf.in2
-rw-r--r--lib/config/config_settings.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/example.conf.in b/conf/example.conf.in
index aab274d74..4894d0405 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -106,7 +106,7 @@ devices {
# Example
# preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
#
- # This configuration option does not have a default value defined.
+ preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
# 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 077fb15ce..65cda088b 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -255,7 +255,7 @@ cfg(devices_external_device_info_source_CFG, "external_device_info_source", devi
" compiled with udev support.\n"
"#\n")
-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,
+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,
"Select which path name to display for a block device.\n"
"If multiple path names exist for a block device, and LVM needs to\n"
"display a name for the device, the path names are matched against\n"