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>
This commit is contained in:
parent
20a4675688
commit
3f555346fb
1
mdadm.c
1
mdadm.c
|
@ -841,6 +841,7 @@ int main(int argc, char *argv[])
|
||||||
continue;
|
continue;
|
||||||
case O(MONITOR,'1'): /* oneshot */
|
case O(MONITOR,'1'): /* oneshot */
|
||||||
oneshot = 1;
|
oneshot = 1;
|
||||||
|
spare_sharing = 0;
|
||||||
continue;
|
continue;
|
||||||
case O(MONITOR,'t'): /* test */
|
case O(MONITOR,'t'): /* test */
|
||||||
test = 1;
|
test = 1;
|
||||||
|
|
Loading…
Reference in New Issue