Fix extra arguments parsing by add-on modules

Module argument behavior changed with commit 772715b1, prior to this
any arguments which were not defined in set_opt[] was passed to
mod_parse(). After this commit the entire list of available options
is passed down to vps_parse_opt() which then attempts to parse them
all with parse() including additional arguments introduced by the
module.

Fix this by passing the internally available arguments into
parse_opt() as well as the combined internal and module supplied
arguments and then only passing the internal arguments to
vps_parse_opt() so any remaining unprocess arguments are available
to mod_parse().

http://bugzilla.openvz.org/2428

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed