diff options
author | NeilBrown <neilb@suse.de> | 2011-09-19 11:01:19 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-09-19 11:01:19 +1000 |
commit | 3f555346fb26b7ee7447b004ecb2c2d57f243867 (patch) | |
tree | 738d3084795c01accaa61436f60ddfa008dfabc1 /mdadm.c | |
parent | 20a4675688e0384a1b4eac61b05f60fbf7747df9 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |