Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14e98c5c authored by Chandra Seetharaman's avatar Chandra Seetharaman Committed by Alasdair G Kergon
Browse files

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: default avatarChandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent b81aa1c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;