From 3f555346fb26b7ee7447b004ecb2c2d57f243867 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 19 Sep 2011 11:01:19 +1000 Subject: [PATCH] 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 Resolves-Debian-Bug: 641886 Signed-off-by: NeilBrown --- mdadm.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2