Skip to contentSkip to conversation

libmultipath: print correct default for delay_*_checks

PATCH In review Benjamin Marzinski 2 participants 4 messages May 16, 2018 – May 28, 2018 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/2 libmultipath: print correct default for delay_*_checks

These options default to "no", so they should display that when the config is printed.

---
 libmultipath/dict.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
libmultipath/dict.c +4 -2
index 4040611..3e7c5d6 100644
@@ -1115,7 +1115,8 @@ print_off_int_undef(char * buff, int len, long v)
 }
 
 declare_def_handler(delay_watch_checks, set_off_int_undef)
-declare_def_snprint(delay_watch_checks, print_off_int_undef)
+declare_def_snprint_defint(delay_watch_checks, print_off_int_undef,
+			   DEFAULT_DELAY_CHECKS)
 declare_ovr_handler(delay_watch_checks, set_off_int_undef)
 declare_ovr_snprint(delay_watch_checks, print_off_int_undef)
 declare_hw_handler(delay_watch_checks, set_off_int_undef)
@@ -1123,7 +1124,8 @@ declare_hw_snprint(delay_watch_checks, print_off_int_undef)
 declare_mp_handler(delay_watch_checks, set_off_int_undef)
 declare_mp_snprint(delay_watch_checks, print_off_int_undef)
 declare_def_handler(delay_wait_checks, set_off_int_undef)
-declare_def_snprint(delay_wait_checks, print_off_int_undef)
+declare_def_snprint_defint(delay_wait_checks, print_off_int_undef,
+			   DEFAULT_DELAY_CHECKS)
 declare_ovr_handler(delay_wait_checks, set_off_int_undef)
 declare_ovr_snprint(delay_wait_checks, print_off_int_undef)
 declare_hw_handler(delay_wait_checks, set_off_int_undef)
Signature · 1 line
2.7.4
author maintainer
#1 lore raw

PATCH 2/2 multipath.conf.5: clarify property whitelist handling

---
 multipath/multipath.conf.5 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
multipath/multipath.conf.5 +3 -4
index f689795..96d1b66 100644
@@ -1181,10 +1181,9 @@ and
 keywords. For a full description of these keywords please see the \fIdevices\fR
 section description.
 .LP
-The \fIproperty\fR blacklist and whitelist handling is different from the usual
-handling in the sense that the whitelist \fIhas\fR to be set, otherwise the
-device will be blacklisted. In these cases the message \fIblacklisted, udev
-property missing\fR will be displayed.
+The \fIproperty\fR whitelist handling is different from the usual
+handling in the sense that the device \fIhas\fR to have a udev property that
+matches the whitelist, otherwise the device will be blacklisted. In these cases the message \fIblacklisted, udev property missing\fR will be displayed.
 .
 .
 .\" ----------------------------------------------------------------------------
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/2] multipath.conf.5: clarify property whitelist handling

Quoted 23 lines · Benjamin Marzinski
---
 multipath/multipath.conf.5 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
multipath/multipath.conf.5 +0 -0
index f689795..96d1b66 100644
@@ -1181,10 +1181,9 @@ and
 keywords. For a full description of these keywords please see the

\fIdevices\fR
section description.
.LP
-The \fIproperty\fR blacklist and whitelist handling is different from the usual
-handling in the sense that the whitelist \fIhas\fR to be set, otherwise the
-device will be blacklisted. In these cases the message \fIblacklisted, udev

multipath/multipath.conf.5 +2 -1
-property missing\fR will be displayed.
+The \fIproperty\fR whitelist handling is different from the usual
+handling in the sense that the device \fIhas\fR to have a udev
Quoted 4 lines

property that
+matches the whitelist, otherwise the device will be blacklisted. In these cases the message \fIblacklisted, udev property missing\fR will be displayed.

ACK in general, but I'm preparing a larger update for the documentation of the blacklist / whitelist handling, to be submitted very soon, which might obsolete this.

Martin

Signature · 8 lines
Dr. Martin Wilck <[email protected]>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Reviewed-by on v1 1/2
#3 lore raw
In reply to Benjamin Marzinski
Quoted 8 lines · Benjamin Marzinski

These options default to "no", so they should display that when the config is printed.

---
 libmultipath/dict.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 8 lines
Dr. Martin Wilck <[email protected]>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel