diff --git a/lvm2-set-default-preferred_names.patch b/lvm2-set-default-preferred_names.patch new file mode 100644 index 0000000..83e76db --- /dev/null +++ b/lvm2-set-default-preferred_names.patch @@ -0,0 +1,15 @@ +--- LVM2.2.02.58/doc/example.conf 2010-01-07 19:54:21.000000000 +0000 ++++ LVM2.2.02.58-new/doc/example.conf 2010-01-20 18:30:32.000000000 +0000 +@@ -23,10 +23,10 @@ + # same block device and the tools need to display a name for device, + # all the pathnames are matched against each item in the following + # list of regular expressions in turn and the first match is used. +- preferred_names = [ ] ++ # preferred_names = [ ] + + # Try to avoid using undescriptive /dev/dm-N names, if present. +- # preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ] ++ preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ] + + # A filter that tells LVM2 to only use a restricted set of devices. + # The filter consists of an array of regular expressions. These