Skip to contentSkip to conversation

Print a warning message when hardware handler parameters are ignored

PATCH In review Chandra Seetharaman 2 participants 2 messages Nov 6, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Print a warning message when hardware handler parameters are ignored

Currently dm ignores the parameters provided to hardware handlers without providing any notifications to the user.

This patch just prints a warning message so that the user knows that the arguments are ignored.

---

drivers/md/dm-mpath.c +4 -0
Index: linux-2.6.27-rc3/drivers/md/dm-mpath.c
===================================================================
@@ -708,6 +708,10 @@ static int parse_hw_handler(struct arg_s
 		m->hw_handler_name = NULL;
 		return -EINVAL;
 	}
+
+	if (hw_argc > 1)
+		DMWARN("Ignoring user specified arguments for hardware handler \"%s\"",
+				m->hw_handler_name);
 	consume(as, hw_argc - 1);
 
 	return 0;
#1 lore raw
Quoted 2 lines · Chandra Seetharaman

Currently dm ignores the parameters provided to hardware handlers without providing any notifications to the user.

Added to -mm & will push for .28

Alasdair