summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-09-19 11:01:19 +1000
committerNeilBrown <neilb@suse.de>2011-09-19 11:01:19 +1000
commit3f555346fb26b7ee7447b004ecb2c2d57f243867 (patch)
tree738d3084795c01accaa61436f60ddfa008dfabc1 /mdadm.c
parent20a4675688e0384a1b4eac61b05f60fbf7747df9 (diff)
Monitor: --oneshot must imply --no-sharing
Moving spares is not the purpose of '--oneshot' and without currently --oneshot doesn't work as the check against multiple spare-sharers prevents it. So make --oneshot imply --no-sharing. This is sensible and allows --oneshot to work again. Reported-by: Jamie Heilman <jamie@audible.transient.net> Resolves-Debian-Bug: 641886 Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index 4b817ab9..15335101 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -841,6 +841,7 @@ int main(int argc, char *argv[])
continue;
case O(MONITOR,'1'): /* oneshot */
oneshot = 1;
+ spare_sharing = 0;
continue;
case O(MONITOR,'t'): /* test */
test = 1;