From: Chandra Seetharaman Subject: [PATCH]: scsi_dh: Print a warning message when ignoring arguments for hardwar handlers Date: Thu, 21 Aug 2008 23:55:37 -0700 Message-ID: <1219388137.14830.112.camel@chandra-ubuntu> Reply-To: sekharan@us.ibm.com, device-mapper development Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Linus Torvalds Cc: device-mapper development , Mike Christie , Alasdair G Kergon List-Id: dm-devel.ids 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 --- 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;