]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.c
Monitor: --oneshot must imply --no-sharing
[thirdparty/mdadm.git] / mdadm.c
diff --git a/mdadm.c b/mdadm.c
index 4b817ab9a0ab06b03c1ebddcab4e7ed36f9c54c1..15335101d318894adc878a17904fb907269a65ba 100644 (file)
--- 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;