Skip to contentSkip to conversation

multipath-tools: replace hardcoded USER_FRIENDLY_NAMES_OFF by default

PATCH In review Xose Vazquez Perez 3 participants 3 messages Oct 18, 2016 – Oct 19, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: replace hardcoded USER_FRIENDLY_NAMES_OFF by default

Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h | 1 +
 libmultipath/propsel.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
libmultipath/defaults.h +1 -0
index d00a86f..e9581a6 100644
@@ -32,6 +32,7 @@
 #define DEFAULT_PRIO_ARGS	""
 #define DEFAULT_CHECKER		TUR
 #define DEFAULT_FLUSH		FLUSH_DISABLED
+#define DEFAULT_USER_FRIENDLY_NAMES USER_FRIENDLY_NAMES_OFF
 
 #define DEFAULT_CHECKINT	5
 #define MAX_CHECKINT(a)		(a << 2)
libmultipath/propsel.c +1 -1
index 88a1916..aaf99fb 100644
@@ -228,7 +228,7 @@ want_user_friendly_names(struct config *conf, struct multipath * mp)
 	       "(controller setting)");
 	do_set(user_friendly_names, conf, user_friendly_names,
 	       "(config file setting)");
-	do_default(user_friendly_names, USER_FRIENDLY_NAMES_OFF);
+	do_default(user_friendly_names, DEFAULT_USER_FRIENDLY_NAMES);
 out:
 	condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
 		(user_friendly_names == USER_FRIENDLY_NAMES_ON)? "yes" : "no",
Signature · 1 line
2.10.1
#1 lore raw

On Tue, Oct 18, 2016 at 03:22:45PM +0200, Xose Vazquez Perez wrote:

ACK

-Ben

Quoted 37 lines
Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h | 1 +
 libmultipath/propsel.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
libmultipath/defaults.h +1 -0
index d00a86f..e9581a6 100644
@@ -32,6 +32,7 @@
 #define DEFAULT_PRIO_ARGS	""
 #define DEFAULT_CHECKER		TUR
 #define DEFAULT_FLUSH		FLUSH_DISABLED
+#define DEFAULT_USER_FRIENDLY_NAMES USER_FRIENDLY_NAMES_OFF
 
 #define DEFAULT_CHECKINT	5
 #define MAX_CHECKINT(a)		(a << 2)
libmultipath/propsel.c +1 -1
index 88a1916..aaf99fb 100644
@@ -228,7 +228,7 @@ want_user_friendly_names(struct config *conf, struct multipath * mp)
 	       "(controller setting)");
 	do_set(user_friendly_names, conf, user_friendly_names,
 	       "(config file setting)");
-	do_default(user_friendly_names, USER_FRIENDLY_NAMES_OFF);
+	do_default(user_friendly_names, DEFAULT_USER_FRIENDLY_NAMES);
 out:
 	condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
 		(user_friendly_names == USER_FRIENDLY_NAMES_ON)? "yes" : "no",
Signature · 1 line
2.10.1
#2 lore raw

Merged.

Quoted 46 lines · Benjamin Marzinski

On Tue, Oct 18, 2016 at 03:22:45PM +0200, Xose Vazquez Perez wrote:

ACK

-Ben

libmultipath/propsel.c want_user_friendly_names(struct config *conf,

Quoted 27 lines
Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/defaults.h | 1 +
 libmultipath/propsel.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
libmultipath/defaults.h +1 -0
index d00a86f..e9581a6 100644
@@ -32,6 +32,7 @@
 #define DEFAULT_PRIO_ARGS    ""
 #define DEFAULT_CHECKER              TUR
 #define DEFAULT_FLUSH                FLUSH_DISABLED
+#define DEFAULT_USER_FRIENDLY_NAMES USER_FRIENDLY_NAMES_OFF
 
 #define DEFAULT_CHECKINT     5
 #define MAX_CHECKINT(a)              (a << 2)
libmultipath/propsel.c +0 -0
index 88a1916..aaf99fb 100644
@@ -228,7 +228,7 @@ want_user_friendly_names(struct config *conf,

struct multipath * mp)

libmultipath/propsel.c want_user_friendly_names(struct config *conf, struct multipath * mp)

Quoted 8 lines
libmultipath/propsel.c +1 -1
             "(controller setting)");
      do_set(user_friendly_names, conf, user_friendly_names,
             "(config file setting)");
-     do_default(user_friendly_names, USER_FRIENDLY_NAMES_OFF);
+     do_default(user_friendly_names, DEFAULT_USER_FRIENDLY_NAMES);
 out:
      condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
              (user_friendly_names == USER_FRIENDLY_NAMES_ON)? "yes" :

"no",

Quoted 2 lines

--
2.10.1