[PATCH]: scsi_dh: Print a warning message when ignoring arguments for hardwar handlers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Instead of silently ignoring the arguments specified along with the
hardware handler, print some warning message to inform the user that the
arguments are dropped.

Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>
---

Index: linux-2.6.27-rc3/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6.27-rc3.orig/drivers/md/dm-mpath.c
+++ linux-2.6.27-rc3/drivers/md/dm-mpath.c
@@ -685,6 +685,10 @@ static int parse_hw_handler(struct arg_s
 		m->hw_handler_name = NULL;
 		return -EINVAL;
 	}
+
+	if (hw_argc > 1)
+		DMWARN("Ignoring arguments for hardware handler \"%s\"",
+				m->hw_handler_name);
 	consume(as, hw_argc - 1);
 
 	return 0;


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux