Skip to contentSkip to conversation

multipath-tools: add missing options and fix comments in hwtable's TEMPLATE

PATCH New Xose Vazquez Perez 1 participant 1 message Oct 22, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: add missing options and fix comments in hwtable's TEMPLATE

and replace prio with its variable.

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/hwtable.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
libmultipath/hwtable.c +5 -4
index 98da295..de10ebf 100644
@@ -1029,10 +1029,9 @@ static struct hwentry default_hw[] = {
 	/*
 	 * Copy this TEMPLATE to add new hardware.
 	 *
-	 * Keep only mandatory and modified attributes.
+	 * Keep only mandatory(.vendor and .product) and modified attributes.
 	 * Attributes with default values must be removed.
-	 * Only .vendor and .product are mandatory, all other are optional.
-	 * .vendor, .product, .revision and .bl_product are POSIX Extended regex
+	 * .vendor, .product, .revision and .bl_product are POSIX Extended regex.
 	 *
 	 * COMPANY_NAME
 	 *
@@ -1049,9 +1048,10 @@ static struct hwentry default_hw[] = {
 		.uid_attribute = "ID_SERIAL",
 		.selector      = "service-time 0",
 		.checker_name  = TUR,
+		.alias_prefix  = "mpath",
 		.features      = "0",
 		.hwhandler     = "0",
-		.prio_name     = "const",
+		.prio_name     = PRIO_CONST,
 		.prio_args     = "",
 		.pgfailback    = -FAILBACK_MANUAL,
 		.rr_weight     = RR_WEIGHT_NONE,
@@ -1059,6 +1059,7 @@ static struct hwentry default_hw[] = {
 		.minio         = 1000,
 		.minio_rq      = 1,
 		.flush_on_last_del = FLUSH_DISABLED,
+		.user_friendly_names = USER_FRIENDLY_NAMES_OFF,
 		.fast_io_fail  = 5,
 		.dev_loss      = 600,
 		.retain_hwhandler = RETAIN_HWHANDLER_ON,
Signature · 1 line
2.10.1