]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
Give suitable error for mdadm /dev/md0 --stop
authorNeilBrown <neilb@suse.de>
Tue, 10 May 2011 06:30:40 +0000 (16:30 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 10 May 2011 06:30:40 +0000 (16:30 +1000)
commitdec18cae724516353ef911f5bed6c3bfee5845f1
treea4d234346a97222b347e99e349b6eea0d3b441be
parent873eec468c0b1b32332b5e4dd6b31e878e0e60e0
Give suitable error for mdadm /dev/md0 --stop

Options like --stop must come before the device that is being
stopped.  If (in --misc mode) a  device does not have an option,
nothing will be done to it, which can be confusing.
So report an error in this case.

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