]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
Fix parsing of "-a" in various contexts.
authorDoug Ledford <dledford@redhat.com>
Sun, 8 Jul 2007 23:59:59 +0000 (09:59 +1000)
committerNeil Brown <neilb@suse.de>
Sun, 8 Jul 2007 23:59:59 +0000 (09:59 +1000)
commit024768c465668a23db794b000e6e0f476beeb0af
treeb5664a5184945c870a24188bed8311864a6cda02
parente4dc510628a8c2d7b92c8ed537987716175a23a2
Fix parsing of "-a" in various contexts.

From: Doug Ledford <dledford@redhat.com>

This one fixes a bug where once manage mode is set, the -a short option
is no longer parsed correctly (true of grow mode as well).  This happens
because when you switch the short opts to the bitmap_auto version, it
specifies that the argument must follow a, yet the loop expects to get
an undecorated option and parse it as the disk dev instead of trying to
parse optarg.  So, create a new short opt array that is used for manage
and grow that doesn't list a as having an argument.
ReadMe.c
mdadm.c
mdadm.h