[lvm-devel] [PATCH] config: Clarify filter documentation

Marian Csontos mcsontos at redhat.com
Tue Jan 2 19:05:52 UTC 2018


---
 conf/example.conf.in         | 4 ++--
 lib/config/config_settings.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/conf/example.conf.in b/conf/example.conf.in
index aab274d..cd4ed29 100644
--- a/conf/example.conf.in
+++ b/conf/example.conf.in
@@ -114,8 +114,8 @@ devices {
 	# device path names. Each regex is delimited by a vertical bar '|'
 	# (or any character) and is preceded by 'a' to accept the path, or
 	# by 'r' to reject the path. The first regex in the list to match the
-	# path is used, producing the 'a' or 'r' result for the device.
-	# When multiple path names exist for a block device, if any path name
+	# path is used, producing the 'a' or 'r' result for that path.
+	# If any of multiple existing path names for a block device
 	# matches an 'a' pattern before an 'r' pattern, then the device is
 	# accepted. If all the path names match an 'r' pattern first, then the
 	# device is rejected. Unmatching path names do not affect the accept
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index 077fb15..f47985e 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -280,8 +280,8 @@ cfg_array(devices_filter_CFG, "filter", devices_CFG_SECTION, CFG_DEFAULT_COMMENT
 	"device path names. Each regex is delimited by a vertical bar '|'\n"
 	"(or any character) and is preceded by 'a' to accept the path, or\n"
 	"by 'r' to reject the path. The first regex in the list to match the\n"
-	"path is used, producing the 'a' or 'r' result for the device.\n"
-	"When multiple path names exist for a block device, if any path name\n"
+	"path is used, producing the 'a' or 'r' result for that path.\n"
+	"If any of multiple existing path names for a block device\n"
 	"matches an 'a' pattern before an 'r' pattern, then the device is\n"
 	"accepted. If all the path names match an 'r' pattern first, then the\n"
 	"device is rejected. Unmatching path names do not affect the accept\n"
-- 
1.8.3.1




More information about the lvm-devel mailing list