]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
mdadm: Rearrange option parsing for KillSubarray and UpdateSubarray
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 2 Nov 2011 21:06:47 +0000 (08:06 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 2 Nov 2011 21:06:47 +0000 (08:06 +1100)
commit5a53aeec7f333e22682930d8fe228b572b7f55c9
treee141fc4edbe93a07362c1614b8e33e43ab4195d2
parent96ae5973dda6f6f6487c74b5f3944720a5b9d21f
mdadm: Rearrange option parsing for KillSubarray and UpdateSubarray

Extracting the 'subarray' arg for these options was being done at the
wrong place which lead to the code being a bit confusing and looking
wrong.

So reformat that code a bit better and move the extraction of
'subarray' down to the main parsing of these options rather than the
mode setting.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.c