config: Clarify filter documentation
PATCH 1/1 config: Clarify filter documentation
--- conf/example.conf.in | 4 ++-- lib/config/config_settings.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
conf/example.conf.in +2 -2
@@ -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
lib/config/config_settings.h +2 -2
@@ -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"
Signature · 1 line
1.8.3.1
PATCH 1/1 config: Clarify filter documentation
conf/example.conf.in devices { · line 116
Quoted 13 lines · Marian Csontos
--- conf/example.conf.in | 4 ++-- lib/config/config_settings.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)conf/example.conf.in +0
-0@@ -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
Reordered the lines so inline comments match each line:
conf/example.conf.in devices { · line 117
Quoted 1 line
conf/example.conf.in +0
-1- # path is used, producing the 'a' or 'r' result for the device > + # path is used, producing the 'a' or 'r' result for that path.
It is path being rejected, not device!
conf/example.conf.in devices { · line 118
Quoted 2 lines
conf/example.conf.in +1
-1- # When multiple path names exist for a block device, if any path name + # If any of multiple existing path names for a block device
"When multiple path names exist for a block device" is true most of if not all the time, and new sentence expresses the intention more clearly.
If anyone is able to come up with better wording I would be happy.
Quoted 19 lines
conf/example.conf.in +0
-0# 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 acceptlib/config/config_settings.h +2
-2@@ -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"