diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2008-11-14 02:39:06 +0300 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-11-14 02:39:06 +0300 |
commit | 14e98c5ca8bed825f65cbf11cb0ffd2c09dac2f4 (patch) | |
tree | 62cb7234d156c0523584343796d0e3c89d7a80bf /drivers/md | |
parent | b81aa1c79201cb424114fd198607951900babe18 (diff) | |
download | linux-14e98c5ca8bed825f65cbf11cb0ffd2c09dac2f4.tar.xz |
dm mpath: warn if args 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.
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-mpath.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 58b1015260fa..3d7f4923cd13 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -708,6 +708,10 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m) 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; |