mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 05:37:36 +00:00
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>
This commit is contained in:
parent
b81aa1c792
commit
14e98c5ca8
1 changed files with 4 additions and 0 deletions
|
@ -708,6 +708,10 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m)
|
||||||
m->hw_handler_name = NULL;
|
m->hw_handler_name = NULL;
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hw_argc > 1)
|
||||||
|
DMWARN("Ignoring user-specified arguments for "
|
||||||
|
"hardware handler \"%s\"", m->hw_handler_name);
|
||||||
consume(as, hw_argc - 1);
|
consume(as, hw_argc - 1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue