Skip to contentSkip to conversation

multipath-tools: replace multipath configuration output

PATCH In review Xose Vazquez Perez 5 participants 11 messages Nov 24, 2016 – Aug 20, 2017 1 message not in the archive Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: replace multipath configuration output

sysfs setting -> setting: kernel sysfs

detected setting -> setting: array autodetected

controller setting -> setting: array configuration

internal default -> setting: multipath internal

overrides setting -> setting: multipath.conf overrides section

LUN setting -> setting: multipath.conf multipaths section

config file default
config file setting -> setting: multipath.conf defaults/devices section

Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/propsel.c | 66 +++++++++++++++++++++++++-------------------------
 1 file changed, 33 insertions(+), 33 deletions(-)
libmultipath/propsel.c +33 -33
index d1db7c3..c0bc616 100644
@@ -41,28 +41,28 @@ do {									\
 #define do_default(dest, value)						\
 do {									\
 	dest = value;							\
-	origin = "(internal default)";					\
+	origin = "(setting: multipath internal)";			\
 } while(0)
 
 #define mp_set_mpe(var)							\
-do_set(var, mp->mpe, mp->var, "(LUN setting)")
+do_set(var, mp->mpe, mp->var, "(setting: multipath.conf multipaths section)")
 #define mp_set_hwe(var)							\
-do_set(var, mp->hwe, mp->var, "(controller setting)")
+do_set(var, mp->hwe, mp->var, "(setting: array configuration)")
 #define mp_set_ovr(var)							\
-do_set(var, conf->overrides, mp->var, "(overrides setting)")
+do_set(var, conf->overrides, mp->var, "(setting: multipath.conf overrides section)")
 #define mp_set_conf(var)						\
-do_set(var, conf, mp->var, "(config file default)")
+do_set(var, conf, mp->var, "(setting: multipath.conf defaults/devices section)")
 #define mp_set_default(var, value)					\
 do_default(mp->var, value)
 
 #define pp_set_mpe(var)							\
-do_set(var, mpe, pp->var, "(LUN setting)")
+do_set(var, mpe, pp->var, "(setting: multipath.conf multipaths section)")
 #define pp_set_hwe(var)							\
-do_set(var, pp->hwe, pp->var, "(controller setting)")
+do_set(var, pp->hwe, pp->var, "(setting: array configuration)")
 #define pp_set_conf(var)						\
-do_set(var, conf, pp->var, "(config file default)")
+do_set(var, conf, pp->var, "(setting: multipath.conf defaults/devices section)")
 #define pp_set_ovr(var)							\
-do_set(var, conf->overrides, pp->var, "(overrides setting)")
+do_set(var, conf->overrides, pp->var, "(setting: multipath.conf overrides section)")
 #define pp_set_default(var, value)					\
 do_default(pp->var, value)
 
@@ -77,9 +77,9 @@ do {									\
 } while(0)
 
 #define set_attr_mpe(var, shift)					\
-do_attr_set(var, mp->mpe, shift, "(LUN setting)")
+do_attr_set(var, mp->mpe, shift, "(setting: multipath.conf multipaths section)")
 #define set_attr_conf(var, shift)					\
-do_attr_set(var, conf, shift, "(config file default)")
+do_attr_set(var, conf, shift, "(setting: multipath.conf defaults/devices section)")
 
 int select_mode(struct config *conf, struct multipath *mp)
 {
@@ -214,13 +214,13 @@ want_user_friendly_names(struct config *conf, struct multipath * mp)
 	int user_friendly_names;
 
 	do_set(user_friendly_names, mp->mpe, user_friendly_names,
-	       "(LUN setting)");
+	       "(setting: multipath.conf multipaths section)");
 	do_set(user_friendly_names, conf->overrides, user_friendly_names,
-	       "(overrides setting)");
+	       "(setting: multipath.conf overrides section)");
 	do_set(user_friendly_names, mp->hwe, user_friendly_names,
-	       "(controller setting)");
+	       "(setting: array configuration)");
 	do_set(user_friendly_names, conf, user_friendly_names,
-	       "(config file setting)");
+	       "(setting: multipath.conf defaults/devices section)");
 	do_default(user_friendly_names, DEFAULT_USER_FRIENDLY_NAMES);
 out:
 	condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
@@ -235,7 +235,7 @@ int select_alias(struct config *conf, struct multipath * mp)
 
 	if (mp->mpe && mp->mpe->alias) {
 		mp->alias = STRDUP(mp->mpe->alias);
-		origin = "(LUN setting)";
+		origin = "(setting: multipath.conf multipaths section)";
 		goto out;
 	}
 
@@ -312,24 +312,24 @@ int select_checker(struct config *conf, struct path *pp)
 	char *origin, *checker_name;
 	struct checker * c = &pp->checker;
 
-	do_set(checker_name, conf->overrides, checker_name, "(overrides setting)");
-	do_set(checker_name, pp->hwe, checker_name, "(controller setting)");
-	do_set(checker_name, conf, checker_name, "(config file setting)");
+	do_set(checker_name, conf->overrides, checker_name, "(setting: multipath.conf overrides section)");
+	do_set(checker_name, pp->hwe, checker_name, "(setting: array configuration)");
+	do_set(checker_name, conf, checker_name, "(setting: multipath.conf defaults/devices section)");
 	do_default(checker_name, DEFAULT_CHECKER);
 out:
 	checker_get(conf->multipath_dir, c, checker_name);
 	condlog(3, "%s: path_checker = %s %s", pp->dev, c->name, origin);
 	if (conf->checker_timeout) {
 		c->timeout = conf->checker_timeout;
-		condlog(3, "%s: checker timeout = %u s (config file default)",
+		condlog(3, "%s: checker timeout = %u s (setting: multipath.conf defaults/devices section)",
 				pp->dev, c->timeout);
 	}
 	else if (sysfs_get_timeout(pp, &c->timeout) > 0)
-		condlog(3, "%s: checker timeout = %u ms (sysfs setting)",
+		condlog(3, "%s: checker timeout = %u ms (setting: kernel sysfs)",
 				pp->dev, c->timeout);
 	else {
 		c->timeout = DEF_TIMEOUT;
-		condlog(3, "%s: checker timeout = %u ms (internal default)",
+		condlog(3, "%s: checker timeout = %u ms (setting: multipath internal)",
 				pp->dev, c->timeout);
 	}
 	return 0;
@@ -397,17 +397,17 @@ int select_prio(struct config *conf, struct path *pp)
 	if (pp->detect_prio == DETECT_PRIO_ON) {
 		detect_prio(conf, pp);
 		if (prio_selected(p)) {
-			origin = "(detected setting)";
+			origin = "(setting: array autodetected)";
 			goto out;
 		}
 	}
 	mpe = find_mpe(conf->mptable, pp->wwid);
-	set_prio(conf->multipath_dir, mpe, "(LUN setting)");
-	set_prio(conf->multipath_dir, conf->overrides, "(overrides setting)");
-	set_prio(conf->multipath_dir, pp->hwe, "controller setting)");
-	set_prio(conf->multipath_dir, conf, "(config file default)");
+	set_prio(conf->multipath_dir, mpe, "(setting: multipath.conf multipaths section)");
+	set_prio(conf->multipath_dir, conf->overrides, "(setting: multipath.conf overrides section)");
+	set_prio(conf->multipath_dir, pp->hwe, "(setting: array configuration)");
+	set_prio(conf->multipath_dir, conf, "(setting: multipath.conf defaults/devices section)");
 	prio_get(conf->multipath_dir, p, DEFAULT_PRIO, DEFAULT_PRIO_ARGS);
-	origin = "(internal default)";
+	origin = "(setting: multipath internal)";
 out:
 	/*
 	 * fetch tpgs mode for alua, if its not already obtained
@@ -448,7 +448,7 @@ out:
 		condlog(3, "%s: no_path_retry = %s (inherited setting)",
 			mp->alias, buff);
 	else
-		condlog(3, "%s: no_path_retry = undef (internal default)",
+		condlog(3, "%s: no_path_retry = undef (setting: multipath internal)",
 			mp->alias);
 	return 0;
 }
@@ -458,10 +458,10 @@ select_minio_rq (struct config *conf, struct multipath * mp)
 {
 	char *origin;
 
-	do_set(minio_rq, mp->mpe, mp->minio, "(LUN setting)");
-	do_set(minio_rq, conf->overrides, mp->minio, "(overrides setting)");
-	do_set(minio_rq, mp->hwe, mp->minio, "(controller setting)");
-	do_set(minio_rq, conf, mp->minio, "(config file setting)");
+	do_set(minio_rq, mp->mpe, mp->minio, "(setting: multipath.conf multipaths section)");
+	do_set(minio_rq, conf->overrides, mp->minio, "(setting: multipath.conf overrides section)");
+	do_set(minio_rq, mp->hwe, mp->minio, "(setting: array configuration)");
+	do_set(minio_rq, conf, mp->minio, "(setting: multipath.conf defaults/devices section)");
 	do_default(mp->minio, DEFAULT_MINIO_RQ);
 out:
 	condlog(3, "%s: minio = %i %s", mp->alias, mp->minio, origin);
Signature · 1 line
2.10.2
#1 lore raw

I am not sure I see the merit of these changes. If it's really necessary to change the wording of the log messages which people have got used to, the new ones should be really more self-explanatory than the old ones.

The common "setting: " formatting is nice but IMHO this alone doesn't really justify overthrowing old habits.

Quoted 5 lines · Xose Vazquez Perez

sysfs setting           -> setting: kernel sysfs

detected setting        -> setting: array autodetected

controller setting      -> setting: array configuration

Is "array" really more understandable to users than "controller"? These settings come from hwentries, so in reality they're either part of the built-in hwtable or of the multipath.conf "devices" section, or am I wrong here?

Quoted 9 lines

internal default        -> setting: multipath internal

overrides setting       -> setting: multipath.conf overrides section

LUN setting             -> setting: multipath.conf multipaths section

config file default
config file setting     -> setting: multipath.conf defaults/devices section

Have you double-checked if this is correct for all options? It would be helpful for users to be able to distinguish which config file section the option was taken from (defaults/devices/multipaths/overrides). The same argument applies to the hardware enries - being able to distinguish built in hardware defaults from config file "devices" settings would be really helpful, but this patch doesn't provide that functionality.

Regards
Martin

Quoted 239 lines
Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>

---
 libmultipath/propsel.c | 66 +++++++++++++++++++++++++---------------
----------

 1 file changed, 33 insertions(+), 33 deletions(-)
libmultipath/propsel.c +1 -1
index d1db7c3..c0bc616 100644
@@ -41,28 +41,28 @@ do {						
 			\
  #define do_default(dest, value)					
 	\
  do {									
 \
  	dest = value;						
 	\
-	origin = "(internal default)";				
 	\
+	origin = "(setting: multipath internal)";			
 \
  } while(0)

 #define mp_set_mpe(var)						
	\
libmultipath/propsel.c +1 -1
-do_set(var, mp->mpe, mp->var, "(LUN setting)")
+do_set(var, mp->mpe, mp->var, "(setting: multipath.conf multipaths

section)")

 #define mp_set_hwe(var)						
	\
libmultipath/propsel.c +1 -1
-do_set(var, mp->hwe, mp->var, "(controller setting)")
+do_set(var, mp->hwe, mp->var, "(setting: array configuration)")
 #define mp_set_ovr(var)						
	\
libmultipath/propsel.c +1 -1
-do_set(var, conf->overrides, mp->var, "(overrides setting)")
+do_set(var, conf->overrides, mp->var, "(setting: multipath.conf

overrides section)")
 #define mp_set_conf(var)
\

libmultipath/propsel.c +1 -1
-do_set(var, conf, mp->var, "(config file default)")
+do_set(var, conf, mp->var, "(setting: multipath.conf

defaults/devices section)")
 #define mp_set_default(var, value)
\
 do_default(mp->var, value)

 #define pp_set_mpe(var)						
	\
libmultipath/propsel.c +1 -1
-do_set(var, mpe, pp->var, "(LUN setting)")
+do_set(var, mpe, pp->var, "(setting: multipath.conf multipaths

section)")

 #define pp_set_hwe(var)						
	\
libmultipath/propsel.c +1 -1
-do_set(var, pp->hwe, pp->var, "(controller setting)")
+do_set(var, pp->hwe, pp->var, "(setting: array configuration)")

 #define pp_set_conf(var)
\

libmultipath/propsel.c +1 -1
-do_set(var, conf, pp->var, "(config file default)")
+do_set(var, conf, pp->var, "(setting: multipath.conf

defaults/devices section)")

 #define pp_set_ovr(var)						
	\
libmultipath/propsel.c +1 -1
-do_set(var, conf->overrides, pp->var, "(overrides setting)")
+do_set(var, conf->overrides, pp->var, "(setting: multipath.conf

overrides section)")
 #define pp_set_default(var, value)
\
 do_default(pp->var, value)

libmultipath/propsel.c +0 -0
@@ -77,9 +77,9 @@ do {						
 			\
  } while(0)


 #define set_attr_mpe(var, shift)
\

libmultipath/propsel.c +1 -1
-do_attr_set(var, mp->mpe, shift, "(LUN setting)")
+do_attr_set(var, mp->mpe, shift, "(setting: multipath.conf

multipaths section)")
 #define set_attr_conf(var, shift)
\

libmultipath/propsel.c +1 -1
-do_attr_set(var, conf, shift, "(config file default)")
+do_attr_set(var, conf, shift, "(setting: multipath.conf

defaults/devices section)")

 int select_mode(struct config *conf, struct multipath *mp) {

libmultipath/propsel.c +0 -0
@@ -214,13 +214,13 @@ want_user_friendly_names(struct config *conf,
 struct multipath * mp)
  	int user_friendly_names;


  do_set(user_friendly_names, mp->mpe, user_friendly_names,

libmultipath/propsel.c +1 -1
-	       "(LUN setting)");
+	       "(setting: multipath.conf multipaths section)");

  do_set(user_friendly_names, conf->overrides, user_friendly_names,

libmultipath/propsel.c +1 -1
-	       "(overrides setting)");
+	       "(setting: multipath.conf overrides section)");

  do_set(user_friendly_names, mp->hwe, user_friendly_names,

libmultipath/propsel.c +1 -1
-	       "(controller setting)");
+	       "(setting: array configuration)");

  do_set(user_friendly_names, conf, user_friendly_names,

libmultipath/propsel.c +1 -1
-	       "(config file setting)");
+	       "(setting: multipath.conf defaults/devices

section)");
  do_default(user_friendly_names, DEFAULT_USER_FRIENDLY_NAMES);
 out:
  condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,

libmultipath/propsel.c +0 -0
@@ -235,7 +235,7 @@ int select_alias(struct config *conf, struct
 multipath * mp)


  if (mp->mpe && mp->mpe->alias) { mp->alias = STRDUP(mp->mpe->alias);

libmultipath/propsel.c +1 -1
-		origin = "(LUN setting)";
+		origin = "(setting: multipath.conf multipaths

section)";
  goto out;
  }

libmultipath/propsel.c +0 -0
@@ -312,24 +312,24 @@ int select_checker(struct config *conf, struct
 path *pp)
  	char *origin, *checker_name;
  	struct checker * c = &pp->checker;

libmultipath/propsel.c +0 -1
-	do_set(checker_name, conf->overrides, checker_name,

"(overrides setting)");

libmultipath/propsel.c +0 -1
-	do_set(checker_name, pp->hwe, checker_name, "(controller

setting)");

libmultipath/propsel.c +0 -1
-	do_set(checker_name, conf, checker_name, "(config file

setting)");

libmultipath/propsel.c +1 -0
+	do_set(checker_name, conf->overrides, checker_name,

"(setting: multipath.conf overrides section)");

libmultipath/propsel.c +1 -0
+	do_set(checker_name, pp->hwe, checker_name, "(setting: array

configuration)");

libmultipath/propsel.c +1 -0
+	do_set(checker_name, conf, checker_name, "(setting:

multipath.conf defaults/devices section)"); do_default(checker_name, DEFAULT_CHECKER); out:
  checker_get(conf->multipath_dir, c, checker_name); condlog(3, "%s: path_checker = %s %s", pp->dev, c->name, origin);
  if (conf->checker_timeout) {
  c->timeout = conf->checker_timeout;

libmultipath/propsel.c +0 -1
-		condlog(3, "%s: checker timeout = %u s (config file

default)",

libmultipath/propsel.c +1 -0
+		condlog(3, "%s: checker timeout = %u s (setting:

multipath.conf defaults/devices section)", pp->dev, c->timeout); }
  else if (sysfs_get_timeout(pp, &c->timeout) > 0)

libmultipath/propsel.c +0 -1
-		condlog(3, "%s: checker timeout = %u ms (sysfs

setting)",

libmultipath/propsel.c +1 -0
+		condlog(3, "%s: checker timeout = %u ms (setting:

kernel sysfs)",
  pp->dev, c->timeout); else {
  c->timeout = DEF_TIMEOUT;

libmultipath/propsel.c +0 -1
-		condlog(3, "%s: checker timeout = %u ms (internal

default)",

libmultipath/propsel.c +1 -0
+		condlog(3, "%s: checker timeout = %u ms (setting:

multipath internal)",
  pp->dev, c->timeout); }
  return 0;

libmultipath/propsel.c +3 -5
@@ -397,17 +397,17 @@ int select_prio(struct config *conf, struct
 path *pp)
  	if (pp->detect_prio == DETECT_PRIO_ON) {
  		detect_prio(conf, pp);
  		if (prio_selected(p)) {
-			origin = "(detected setting)";
+			origin = "(setting: array autodetected)";
  			goto out;
  		}
  	}
  	mpe = find_mpe(conf->mptable, pp->wwid);
-	set_prio(conf->multipath_dir, mpe, "(LUN setting)");
-	set_prio(conf->multipath_dir, conf->overrides, "(overrides
 setting)");
-	set_prio(conf->multipath_dir, pp->hwe, "controller
 setting)");
-	set_prio(conf->multipath_dir, conf, "(config file
 default)");
+	set_prio(conf->multipath_dir, mpe, "(setting: multipath.conf
 multipaths section)");
+	set_prio(conf->multipath_dir, conf->overrides, "(setting:

multipath.conf overrides section)");

libmultipath/propsel.c +1 -0
+	set_prio(conf->multipath_dir, pp->hwe, "(setting: array

configuration)");

libmultipath/propsel.c +1 -0
+	set_prio(conf->multipath_dir, conf, "(setting:

multipath.conf defaults/devices section)"); prio_get(conf->multipath_dir, p, DEFAULT_PRIO, DEFAULT_PRIO_ARGS);

libmultipath/propsel.c +1 -1
-	origin = "(internal default)";
+	origin = "(setting: multipath internal)";

 out:
  /*
   * fetch tpgs mode for alua, if its not already obtained

libmultipath/propsel.c +0 -0
@@ -448,7 +448,7 @@ out:

  condlog(3, "%s: no_path_retry = %s (inherited setting)",
  mp->alias, buff);
  else

libmultipath/propsel.c +0 -1
-		condlog(3, "%s: no_path_retry = undef (internal

default)",

libmultipath/propsel.c +1 -0
+		condlog(3, "%s: no_path_retry = undef (setting:

multipath internal)",
  mp->alias);
  return 0;
 }

libmultipath/propsel.c +0 -0
@@ -458,10 +458,10 @@ select_minio_rq (struct config *conf, struct
 multipath * mp)
  {
  	char *origin;

libmultipath/propsel.c +0 -2
-	do_set(minio_rq, mp->mpe, mp->minio, "(LUN setting)");
-	do_set(minio_rq, conf->overrides, mp->minio, "(overrides

setting)");

libmultipath/propsel.c +0 -1
-	do_set(minio_rq, mp->hwe, mp->minio, "(controller

setting)");

libmultipath/propsel.c +1 -1
-	do_set(minio_rq, conf, mp->minio, "(config file setting)");
+	do_set(minio_rq, mp->mpe, mp->minio, "(setting:

multipath.conf multipaths section)");

libmultipath/propsel.c +1 -0
+	do_set(minio_rq, conf->overrides, mp->minio, "(setting:

multipath.conf overrides section)");

libmultipath/propsel.c +1 -0
+	do_set(minio_rq, mp->hwe, mp->minio, "(setting: array

configuration)");

libmultipath/propsel.c +1 -0
+	do_set(minio_rq, conf, mp->minio, "(setting: multipath.conf

defaults/devices section)");
  do_default(mp->minio, DEFAULT_MINIO_RQ); out:
  condlog(3, "%s: minio = %i %s", mp->alias, mp->minio, origin);

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
#2 lore raw

I also like the more structured wording you propose, and I can see how greping "setting:" can help.

I'll wait a little longer to receive ack (not receive nack?) from distributors, as they face the annoyed users whose scripts break when we change our log strings format.

Thanks.

Quoted 293 lines · Martin Wilck

I am not sure I see the merit of these changes. If it's really necessary to change the wording of the log messages which people have got used to, the new ones should be really more self-explanatory than the old ones.

The common "setting: " formatting is nice but IMHO this alone doesn't really justify overthrowing old habits.

Quoted 5 lines · Xose Vazquez Perez

sysfs setting -> setting: kernel sysfs

detected setting -> setting: array autodetected

controller setting -> setting: array configuration

Is "array" really more understandable to users than "controller"? These settings come from hwentries, so in reality they're either part of the built-in hwtable or of the multipath.conf "devices" section, or am I wrong here?

Quoted 9 lines

internal default -> setting: multipath internal

overrides setting -> setting: multipath.conf overrides section

LUN setting -> setting: multipath.conf multipaths section

config file default
config file setting -> setting: multipath.conf defaults/devices
section

Have you double-checked if this is correct for all options? It would be helpful for users to be able to distinguish which config file section the option was taken from (defaults/devices/multipaths/overrides). The same argument applies to the hardware enries - being able to distinguish built in hardware defaults from config file "devices" settings would be really helpful, but this patch doesn't provide that functionality.

Regards
Martin

Quoted 234 lines
Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/propsel.c | 66 +++++++++++++++++++++++++---------------
----------
 1 file changed, 33 insertions(+), 33 deletions(-)
libmultipath/propsel.c +5 -5
index d1db7c3..c0bc616 100644
@@ -41,28 +41,28 @@ do {
                      \
 #define do_default(dest, value)
      \
 do {
 \
      dest = value;
      \
-     origin = "(internal default)";
      \
+     origin = "(setting: multipath internal)";
 \
 } while(0)
 
 #define mp_set_mpe(var)
      \
-do_set(var, mp->mpe, mp->var, "(LUN setting)")
+do_set(var, mp->mpe, mp->var, "(setting: multipath.conf multipaths
 section)")
 #define mp_set_hwe(var)
      \
-do_set(var, mp->hwe, mp->var, "(controller setting)")
+do_set(var, mp->hwe, mp->var, "(setting: array configuration)")
 #define mp_set_ovr(var)
      \
-do_set(var, conf->overrides, mp->var, "(overrides setting)")
+do_set(var, conf->overrides, mp->var, "(setting: multipath.conf
 overrides section)")
 #define mp_set_conf(var)
 \
-do_set(var, conf, mp->var, "(config file default)")
+do_set(var, conf, mp->var, "(setting: multipath.conf
 defaults/devices section)")
 #define mp_set_default(var, value)

\
do_default(mp->var, value)

 #define pp_set_mpe(var)
      \
libmultipath/propsel.c +1 -1
-do_set(var, mpe, pp->var, "(LUN setting)")
+do_set(var, mpe, pp->var, "(setting: multipath.conf multipaths

section)")

 #define pp_set_hwe(var)
      \
libmultipath/propsel.c +1 -1
-do_set(var, pp->hwe, pp->var, "(controller setting)")
+do_set(var, pp->hwe, pp->var, "(setting: array configuration)")
 #define pp_set_conf(var)

\

libmultipath/propsel.c +1 -1
-do_set(var, conf, pp->var, "(config file default)")
+do_set(var, conf, pp->var, "(setting: multipath.conf

defaults/devices section)")

 #define pp_set_ovr(var)
      \
libmultipath/propsel.c +1 -1
-do_set(var, conf->overrides, pp->var, "(overrides setting)")
+do_set(var, conf->overrides, pp->var, "(setting: multipath.conf

overrides section)")
#define pp_set_default(var, value)
\
do_default(pp->var, value)

libmultipath/propsel.c +2 -2
@@ -77,9 +77,9 @@ do {
                      \
 } while(0)
 
 #define set_attr_mpe(var, shift)
 \
-do_attr_set(var, mp->mpe, shift, "(LUN setting)")
+do_attr_set(var, mp->mpe, shift, "(setting: multipath.conf
 multipaths section)")
 #define set_attr_conf(var, shift)
 \
-do_attr_set(var, conf, shift, "(config file default)")
+do_attr_set(var, conf, shift, "(setting: multipath.conf

defaults/devices section)")

int select_mode(struct config *conf, struct multipath *mp) {

libmultipath/propsel.c +4 -4
@@ -214,13 +214,13 @@ want_user_friendly_names(struct config *conf,
 struct multipath * mp)
      int user_friendly_names;
 
      do_set(user_friendly_names, mp->mpe, user_friendly_names,
-            "(LUN setting)");
+            "(setting: multipath.conf multipaths section)");
      do_set(user_friendly_names, conf->overrides,
 user_friendly_names,
-            "(overrides setting)");
+            "(setting: multipath.conf overrides section)");
      do_set(user_friendly_names, mp->hwe, user_friendly_names,
-            "(controller setting)");
+            "(setting: array configuration)");
      do_set(user_friendly_names, conf, user_friendly_names,
-            "(config file setting)");
+            "(setting: multipath.conf defaults/devices
 section)");

do_default(user_friendly_names,
DEFAULT_USER_FRIENDLY_NAMES);
out:

      condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
libmultipath/propsel.c +1 -1
@@ -235,7 +235,7 @@ int select_alias(struct config *conf, struct
 multipath * mp)
 
      if (mp->mpe && mp->mpe->alias) {
              mp->alias = STRDUP(mp->mpe->alias);
-             origin = "(LUN setting)";
+             origin = "(setting: multipath.conf multipaths
 section)";
              goto out;
      }
libmultipath/propsel.c +4 -4
@@ -312,24 +312,24 @@ int select_checker(struct config *conf, struct
 path *pp)
      char *origin, *checker_name;
      struct checker * c = &pp->checker;
 
-     do_set(checker_name, conf->overrides, checker_name,
 "(overrides setting)");
-     do_set(checker_name, pp->hwe, checker_name, "(controller
 setting)");
-     do_set(checker_name, conf, checker_name, "(config file
 setting)");
+     do_set(checker_name, conf->overrides, checker_name,
 "(setting: multipath.conf overrides section)");
+     do_set(checker_name, pp->hwe, checker_name, "(setting: array
 configuration)");
+     do_set(checker_name, conf, checker_name, "(setting:
 multipath.conf defaults/devices section)");
      do_default(checker_name, DEFAULT_CHECKER);
 out:
      checker_get(conf->multipath_dir, c, checker_name);
      condlog(3, "%s: path_checker = %s %s", pp->dev, c->name,
 origin);
      if (conf->checker_timeout) {
              c->timeout = conf->checker_timeout;
-             condlog(3, "%s: checker timeout = %u s (config file
 default)",
+             condlog(3, "%s: checker timeout = %u s (setting:
 multipath.conf defaults/devices section)",
                              pp->dev, c->timeout);
      }
      else if (sysfs_get_timeout(pp, &c->timeout) > 0)

- condlog(3, "%s: checker timeout = %u ms (sysfs
setting)",
+ condlog(3, "%s: checker timeout = %u ms (setting:
kernel sysfs)",

                              pp->dev, c->timeout);
      else {
              c->timeout = DEF_TIMEOUT;

- condlog(3, "%s: checker timeout = %u ms (internal
default)",
+ condlog(3, "%s: checker timeout = %u ms (setting:
multipath internal)",

                              pp->dev, c->timeout);
      }
      return 0;
libmultipath/propsel.c +3 -5
@@ -397,17 +397,17 @@ int select_prio(struct config *conf, struct
 path *pp)
      if (pp->detect_prio == DETECT_PRIO_ON) {
              detect_prio(conf, pp);
              if (prio_selected(p)) {
-                     origin = "(detected setting)";
+                     origin = "(setting: array autodetected)";
                      goto out;
              }
      }
      mpe = find_mpe(conf->mptable, pp->wwid);
-     set_prio(conf->multipath_dir, mpe, "(LUN setting)");
-     set_prio(conf->multipath_dir, conf->overrides, "(overrides
 setting)");
-     set_prio(conf->multipath_dir, pp->hwe, "controller
 setting)");
-     set_prio(conf->multipath_dir, conf, "(config file
 default)");
+     set_prio(conf->multipath_dir, mpe, "(setting: multipath.conf
 multipaths section)");
+     set_prio(conf->multipath_dir, conf->overrides, "(setting:

multipath.conf overrides section)");
+ set_prio(conf->multipath_dir, pp->hwe, "(setting: array
configuration)");
+ set_prio(conf->multipath_dir, conf, "(setting:

multipath.conf defaults/devices section)");
      prio_get(conf->multipath_dir, p, DEFAULT_PRIO,

DEFAULT_PRIO_ARGS);

libmultipath/propsel.c +2 -2
-     origin = "(internal default)";
+     origin = "(setting: multipath internal)";
 out:
      /*
       * fetch tpgs mode for alua, if its not already obtained
@@ -448,7 +448,7 @@ out:
              condlog(3, "%s: no_path_retry = %s (inherited
 setting)",
                      mp->alias, buff);
      else
-             condlog(3, "%s: no_path_retry = undef (internal
 default)",
+             condlog(3, "%s: no_path_retry = undef (setting:
 multipath internal)",
                      mp->alias);
      return 0;

}

libmultipath/propsel.c +1 -4
@@ -458,10 +458,10 @@ select_minio_rq (struct config *conf, struct
 multipath * mp)
 {
      char *origin;
 
-     do_set(minio_rq, mp->mpe, mp->minio, "(LUN setting)");
-     do_set(minio_rq, conf->overrides, mp->minio, "(overrides
 setting)");
-     do_set(minio_rq, mp->hwe, mp->minio, "(controller
 setting)");
-     do_set(minio_rq, conf, mp->minio, "(config file setting)");
+     do_set(minio_rq, mp->mpe, mp->minio, "(setting:

multipath.conf multipaths section)");
+ do_set(minio_rq, conf->overrides, mp->minio, "(setting:
multipath.conf overrides section)");
+ do_set(minio_rq, mp->hwe, mp->minio, "(setting: array
configuration)");
+ do_set(minio_rq, conf, mp->minio, "(setting: multipath.conf

Quoted 5 lines
defaults/devices section)");
      do_default(mp->minio, DEFAULT_MINIO_RQ);
 out:
      condlog(3, "%s: minio = %i %s", mp->alias, mp->minio,

origin);

--
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

#3 lore raw
Quoted 5 lines · Christophe Varoqui

I also like the more structured wording you propose, and I can see how greping "setting:" can help.
I'll wait a little longer to receive ack (not receive nack?) from distributors, as they face the annoyed users whose scripts break when we change our log strings format.

I don't really see the need for this change. But we wouldn't be pulling it in until the next major RHEL release, and if the debug messages change on a major relese, I'm not too worried about that. I can also see the benefit of the "setting:" prefix, but in truth, I don't think anyone looks at these except when something goes wrong, and in that case, they are probably grepping for the option name anyway.

So, I'm not NACKing this, but I'm not pushing for it either. I really don't care, one way or ther other.

-Ben

Quoted 310 lines
   Thanks.
   On Fri, Nov 25, 2016 at 10:00 AM, Martin Wilck <[1][email protected]> wrote:

     I am not sure I see the merit of these changes. If it's really
     necessary to change the wording of the log messages which people have
     got used to, the new ones should be really more self-explanatory than
     the old ones.

     The common "setting: " formatting is nice but IMHO this alone doesn't
     really justify overthrowing old habits.
     On Thu, 2016-11-24 at 23:44 +0100, Xose Vazquez Perez wrote:
     > sysfs setting           -> setting: kernel sysfs
     >
     > detected setting        -> setting: array autodetected
     >
     > controller setting      -> setting: array configuration

     Is "array" really more understandable to users than "controller"?
     These settings come from hwentries, so in reality they're either part
     of the built-in hwtable or of the multipath.conf "devices" section, or
     am I wrong here?
     > internal default        -> setting: multipath internal
     >
     > overrides setting       -> setting: multipath.conf overrides section
     >
     > LUN setting             -> setting: multipath.conf multipaths section
     >
     > config file default
     > config file setting     -> setting: multipath.conf defaults/devices
     > section

     Have you double-checked if this is correct for all options? It would be
     helpful for users to be able to distinguish which config file section
     the option was taken from (defaults/devices/multipaths/overrides). The
     same argument applies to the hardware enries - being able to
     distinguish built in hardware defaults from config file "devices"
     settings would be really helpful, but this patch doesn't provide that
     functionality.

     Regards
     Martin

     >
     >
     > Cc: Benjamin Marzinski <[2][email protected]>
     > Cc: Hannes Reinecke <[3][email protected]>
     > Cc: Christophe Varoqui <[4][email protected]>
     > Cc: device-mapper development <[5][email protected]>
     > Signed-off-by: Xose Vazquez Perez <[6][email protected]>
     > ---
     >  libmultipath/propsel.c | 66 +++++++++++++++++++++++++---------------
     > ----------
     >  1 file changed, 33 insertions(+), 33 deletions(-)
     >
     > diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c
     > index d1db7c3..c0bc616 100644
     > --- a/libmultipath/propsel.c
     > +++ b/libmultipath/propsel.c
     > @@ -41,28 +41,28 @@ do {
     >                       \
     >  #define do_default(dest, value)
     >       \
     >  do {
     > \
     >       dest = value;
     >       \
     > -     origin = "(internal default)";
     >       \
     > +     origin = "(setting: multipath internal)";
     > \
     >  } while(0)
     >  
     >  #define mp_set_mpe(var)
     >       \
     > -do_set(var, mp->mpe, mp->var, "(LUN setting)")
     > +do_set(var, mp->mpe, mp->var, "(setting: multipath.conf multipaths
     > section)")
     >  #define mp_set_hwe(var)
     >       \
     > -do_set(var, mp->hwe, mp->var, "(controller setting)")
     > +do_set(var, mp->hwe, mp->var, "(setting: array configuration)")
     >  #define mp_set_ovr(var)
     >       \
     > -do_set(var, conf->overrides, mp->var, "(overrides setting)")
     > +do_set(var, conf->overrides, mp->var, "(setting: multipath.conf
     > overrides section)")
     >  #define mp_set_conf(var)
     > \
     > -do_set(var, conf, mp->var, "(config file default)")
     > +do_set(var, conf, mp->var, "(setting: multipath.conf
     > defaults/devices section)")
     >  #define mp_set_default(var, value)
     > \
     >  do_default(mp->var, value)
     >  
     >  #define pp_set_mpe(var)
     >       \
     > -do_set(var, mpe, pp->var, "(LUN setting)")
     > +do_set(var, mpe, pp->var, "(setting: multipath.conf multipaths
     > section)")
     >  #define pp_set_hwe(var)
     >       \
     > -do_set(var, pp->hwe, pp->var, "(controller setting)")
     > +do_set(var, pp->hwe, pp->var, "(setting: array configuration)")
     >  #define pp_set_conf(var)
     > \
     > -do_set(var, conf, pp->var, "(config file default)")
     > +do_set(var, conf, pp->var, "(setting: multipath.conf
     > defaults/devices section)")
     >  #define pp_set_ovr(var)
     >       \
     > -do_set(var, conf->overrides, pp->var, "(overrides setting)")
     > +do_set(var, conf->overrides, pp->var, "(setting: multipath.conf
     > overrides section)")
     >  #define pp_set_default(var, value)
     > \
     >  do_default(pp->var, value)
     >  
     > @@ -77,9 +77,9 @@ do {
     >                       \
     >  } while(0)
     >  
     >  #define set_attr_mpe(var, shift)
     > \
     > -do_attr_set(var, mp->mpe, shift, "(LUN setting)")
     > +do_attr_set(var, mp->mpe, shift, "(setting: multipath.conf
     > multipaths section)")
     >  #define set_attr_conf(var, shift)
     > \
     > -do_attr_set(var, conf, shift, "(config file default)")
     > +do_attr_set(var, conf, shift, "(setting: multipath.conf
     > defaults/devices section)")
     >  
     >  int select_mode(struct config *conf, struct multipath *mp)
     >  {
     > @@ -214,13 +214,13 @@ want_user_friendly_names(struct config *conf,
     > struct multipath * mp)
     >       int user_friendly_names;
     >  
     >       do_set(user_friendly_names, mp->mpe, user_friendly_names,
     > -            "(LUN setting)");
     > +            "(setting: multipath.conf multipaths section)");
     >       do_set(user_friendly_names, conf->overrides,
     > user_friendly_names,
     > -            "(overrides setting)");
     > +            "(setting: multipath.conf overrides section)");
     >       do_set(user_friendly_names, mp->hwe, user_friendly_names,
     > -            "(controller setting)");
     > +            "(setting: array configuration)");
     >       do_set(user_friendly_names, conf, user_friendly_names,
     > -            "(config file setting)");
     > +            "(setting: multipath.conf defaults/devices
     > section)");
     >       do_default(user_friendly_names,
     > DEFAULT_USER_FRIENDLY_NAMES);
     >  out:
     >       condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
     > @@ -235,7 +235,7 @@ int select_alias(struct config *conf, struct
     > multipath * mp)
     >  
     >       if (mp->mpe && mp->mpe->alias) {
     >               mp->alias = STRDUP(mp->mpe->alias);
     > -             origin = "(LUN setting)";
     > +             origin = "(setting: multipath.conf multipaths
     > section)";
     >               goto out;
     >       }
     >  
     > @@ -312,24 +312,24 @@ int select_checker(struct config *conf, struct
     > path *pp)
     >       char *origin, *checker_name;
     >       struct checker * c = &pp->checker;
     >  
     > -     do_set(checker_name, conf->overrides, checker_name,
     > "(overrides setting)");
     > -     do_set(checker_name, pp->hwe, checker_name, "(controller
     > setting)");
     > -     do_set(checker_name, conf, checker_name, "(config file
     > setting)");
     > +     do_set(checker_name, conf->overrides, checker_name,
     > "(setting: multipath.conf overrides section)");
     > +     do_set(checker_name, pp->hwe, checker_name, "(setting: array
     > configuration)");
     > +     do_set(checker_name, conf, checker_name, "(setting:
     > multipath.conf defaults/devices section)");
     >       do_default(checker_name, DEFAULT_CHECKER);
     >  out:
     >       checker_get(conf->multipath_dir, c, checker_name);
     >       condlog(3, "%s: path_checker = %s %s", pp->dev, c->name,
     > origin);
     >       if (conf->checker_timeout) {
     >               c->timeout = conf->checker_timeout;
     > -             condlog(3, "%s: checker timeout = %u s (config file
     > default)",
     > +             condlog(3, "%s: checker timeout = %u s (setting:
     > multipath.conf defaults/devices section)",
     >                               pp->dev, c->timeout);
     >       }
     >       else if (sysfs_get_timeout(pp, &c->timeout) > 0)
     > -             condlog(3, "%s: checker timeout = %u ms (sysfs
     > setting)",
     > +             condlog(3, "%s: checker timeout = %u ms (setting:
     > kernel sysfs)",
     >                               pp->dev, c->timeout);
     >       else {
     >               c->timeout = DEF_TIMEOUT;
     > -             condlog(3, "%s: checker timeout = %u ms (internal
     > default)",
     > +             condlog(3, "%s: checker timeout = %u ms (setting:
     > multipath internal)",
     >                               pp->dev, c->timeout);
     >       }
     >       return 0;
     > @@ -397,17 +397,17 @@ int select_prio(struct config *conf, struct
     > path *pp)
     >       if (pp->detect_prio == DETECT_PRIO_ON) {
     >               detect_prio(conf, pp);
     >               if (prio_selected(p)) {
     > -                     origin = "(detected setting)";
     > +                     origin = "(setting: array autodetected)";
     >                       goto out;
     >               }
     >       }
     >       mpe = find_mpe(conf->mptable, pp->wwid);
     > -     set_prio(conf->multipath_dir, mpe, "(LUN setting)");
     > -     set_prio(conf->multipath_dir, conf->overrides, "(overrides
     > setting)");
     > -     set_prio(conf->multipath_dir, pp->hwe, "controller
     > setting)");
     > -     set_prio(conf->multipath_dir, conf, "(config file
     > default)");
     > +     set_prio(conf->multipath_dir, mpe, "(setting: multipath.conf
     > multipaths section)");
     > +     set_prio(conf->multipath_dir, conf->overrides, "(setting:
     > multipath.conf overrides section)");
     > +     set_prio(conf->multipath_dir, pp->hwe, "(setting: array
     > configuration)");
     > +     set_prio(conf->multipath_dir, conf, "(setting:
     > multipath.conf defaults/devices section)");
     >       prio_get(conf->multipath_dir, p, DEFAULT_PRIO,
     > DEFAULT_PRIO_ARGS);
     > -     origin = "(internal default)";
     > +     origin = "(setting: multipath internal)";
     >  out:
     >       /*
     >        * fetch tpgs mode for alua, if its not already obtained
     > @@ -448,7 +448,7 @@ out:
     >               condlog(3, "%s: no_path_retry = %s (inherited
     > setting)",
     >                       mp->alias, buff);
     >       else
     > -             condlog(3, "%s: no_path_retry = undef (internal
     > default)",
     > +             condlog(3, "%s: no_path_retry = undef (setting:
     > multipath internal)",
     >                       mp->alias);
     >       return 0;
     >  }
     > @@ -458,10 +458,10 @@ select_minio_rq (struct config *conf, struct
     > multipath * mp)
     >  {
     >       char *origin;
     >  
     > -     do_set(minio_rq, mp->mpe, mp->minio, "(LUN setting)");
     > -     do_set(minio_rq, conf->overrides, mp->minio, "(overrides
     > setting)");
     > -     do_set(minio_rq, mp->hwe, mp->minio, "(controller
     > setting)");
     > -     do_set(minio_rq, conf, mp->minio, "(config file setting)");
     > +     do_set(minio_rq, mp->mpe, mp->minio, "(setting:
     > multipath.conf multipaths section)");
     > +     do_set(minio_rq, conf->overrides, mp->minio, "(setting:
     > multipath.conf overrides section)");
     > +     do_set(minio_rq, mp->hwe, mp->minio, "(setting: array
     > configuration)");
     > +     do_set(minio_rq, conf, mp->minio, "(setting: multipath.conf
     > defaults/devices section)");
     >       do_default(mp->minio, DEFAULT_MINIO_RQ);
     >  out:
     >       condlog(3, "%s: minio = %i %s", mp->alias, mp->minio,
     > origin);

     --
     Dr. Martin Wilck <[7][email protected]>, Tel. [8]+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
     [9][email protected]
     [10]https://www.redhat.com/mailman/listinfo/dm-devel

References

Visible links
1. mailto:[email protected]
2. mailto:[email protected]
3. mailto:[email protected]
4. mailto:[email protected]
5. mailto:[email protected]
6. mailto:[email protected]
7. mailto:[email protected]
8. file:///tmp/tel:%2B49%20%280%29911%2074053%202107
9. mailto:[email protected]
10. https://www.redhat.com/mailman/listinfo/dm-devel

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

#4 lore raw
Quoted 2 lines · Benjamin Marzinski

I don't really see the need for this change. But we wouldn't be pulling it in until the next major RHEL release [...]

BTW, do you(SUSE/RH) have any distro fixes/features pending for upstream?

#5 lore raw

Then merged.
Thanks for the work and the comments.

Quoted 7 lines · Xose Vazquez Perez
Quoted 2 lines · Benjamin Marzinski

I don't really see the need for this change. But we wouldn't be pulling it in until the next major RHEL release [...]

BTW, do you(SUSE/RH) have any distro fixes/features pending for upstream?

#6 lore raw

multipath-tools: Fixes/features for upstream

In reply to Xose Vazquez Perez
Quoted 6 lines · Xose Vazquez Perez
Quoted 2 lines · Benjamin Marzinski

I don't really see the need for this change. But we wouldn't be pulling it in until the next major RHEL release [...]

BTW, do you(SUSE/RH) have any distro fixes/features pending for upstream?

I looked over the SUSE branch time ago, and there were ~30 patches diverging from master. If you have a while, could you please send them to upstream?

Thank you.

#7 lore raw

Re: multipath-tools: Fixes/features for upstream

Quoted 4 lines · Xose Vazquez Perez
Quoted 2 lines · Xose Vazquez Perez

On 12/02/2016 04:52 AM, Benjamin Marzinski wrote:

Quoted 9 lines
Quoted 4 lines
Quoted 2 lines

I don't really see the need for this change. But we wouldn't be pulling it in until the next major RHEL release [...]

BTW, do you(SUSE/RH) have any distro fixes/features pending for upstream?

I looked over the SUSE branch time ago, and there were ~30 patches diverging from master. If you have a while, could you please send them to upstream?

Martin Wilck is currently preparing a submission.

Cheers,

Hannes

Signature · 10 lines
Dr. Hannes Reinecke		   Teamlead Storage & Networking
[email protected]			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#8 lore raw
In reply to Martin Wilck
Quoted 4 lines · Martin Wilck

I am not sure I see the merit of these changes. If it's really necessary to change the wording of the log messages which people have got used to, the new ones should be really more self-explanatory than the old ones.

Some of them are a riddle, wrapped in a mystery, inside an enigma. For example "LUN setting". "setting: multipath.conf multipaths section" is, by far, a better description.

Quoted 2 lines

The common "setting: " formatting is nice but IMHO this alone doesn't really justify overthrowing old habits.

I really don't care the marker name, "setting:" "conf:" ... But a standard one should be used.

Quoted 8 lines · Xose Vazquez Perez
Quoted 5 lines

sysfs setting -> setting: kernel sysfs

detected setting -> setting: array autodetected

controller setting -> setting: array configuration

Is "array" really more understandable to users than "controller"?

"controller", what controller? local hba? array controller? "array" is unequivocal.

Quoted 3 lines

These settings come from hwentries, so in reality they're either part of the built-in hwtable or of the multipath.conf "devices" section, or am I wrong here?

Also from /sys fs, from the array or auto-negotiated kernel<->array.

Quoted 11 lines
Quoted 9 lines

internal default -> setting: multipath internal

overrides setting -> setting: multipath.conf overrides section

LUN setting -> setting: multipath.conf multipaths section

config file default
config file setting -> setting: multipath.conf defaults/devices
section

Have you double-checked if this is correct for all options?

Yes. I don't do random patches.

Quoted 6 lines

It would be helpful for users to be able to distinguish which config file section the option was taken from (defaults/devices/multipaths/overrides). The same argument applies to the hardware enries - being able to distinguish built in hardware defaults from config file "devices" settings would be really helpful, but this patch doesn't provide that functionality.

This is a first step. Anyhow only "multipath.conf defaults/devices" could be split. overrides and multipaths sections already are independent as you can see in libmultipath/propsel.c

#9 lore raw
Quoted 9 lines · Xose Vazquez Perez
Quoted 6 lines · Martin Wilck

I am not sure I see the merit of these changes. If it's really necessary to change the wording of the log messages which people have
got used to, the new ones should be really more self-explanatory than
the old ones.

Quoted 4 lines

Some of them are a riddle, wrapped in a mystery, inside an enigma. For example "LUN setting". "setting: multipath.conf multipaths section"
is, by far, a better description.

Agreed.

Quoted 6 lines
Quoted 3 lines

The common "setting: " formatting is nice but IMHO this alone doesn't
really justify overthrowing old habits.

I really don't care the marker name, "setting:" "conf:" ... But a standard one should be used.

Agreed.

Quoted 10 lines
Quoted 7 lines · Xose Vazquez Perez
Quoted 5 lines

sysfs setting           -> setting: kernel sysfs

detected setting        -> setting: array autodetected

controller setting      -> setting: array configuration

Is "array" really more understandable to users than "controller"?

"controller", what controller? local hba? array controller? "array" is unequivocal.

I tend to associate "array" with "RAID", and therefore I found this term confusing. Perhaps "storage" or "storage array"? Or even "device", overloaded as it may be, because that would match the section name in multipath.conf?

Quoted 17 lines
Quoted 5 lines

These settings come from hwentries, so in reality they're either part
of the built-in hwtable or of the multipath.conf "devices" section,
or am I wrong here?

Also from /sys fs, from the array or auto-negotiated kernel<->array.

Quoted 9 lines

It would be helpful for users to be able to distinguish which config file section
the option was taken from (defaults/devices/multipaths/overrides). The
same argument applies to the hardware enries - being able to distinguish built in hardware defaults from config file "devices" settings would be really helpful, but this patch doesn't provide that
functionality.

Quoted 5 lines

This is a first step. Anyhow only "multipath.conf defaults/devices" could be split.
overrides and multipaths sections already are independent as you can see in
libmultipath/propsel.c

OK.

Quoted 1 line

From an end user perspective, figuring out the "sysfs" and "auto-

negotiated" config option origin, as you mentioned above, might be most important, in particular when these take precedence over config file settings.

Anyway, thanks for putting thought into this.

Best Regards
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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 9 lines · Xose Vazquez Perez
Quoted 7 lines · Martin Wilck
Quoted 3 lines

"controller", what controller? local hba? array controller? "array" is unequivocal.

I tend to associate "array" with "RAID", and therefore I found this term confusing. Perhaps "storage" or "storage array"? Or even "device", overloaded as it may be, because that would match the section name in multipath.conf?

OK, done.