summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-19 04:53:22 +0000
committerNeil Brown <neilb@suse.de>2006-05-19 04:53:22 +0000
commitb8a8ccf945c72f847e17260feb97fc5da5222106 (patch)
tree996cd1e5bbeeb5209c372ab66cc03b75b039ef8a /mdadm.c
parent008e1100b80c571427ba8230bf04928ba0de8bcb (diff)
downloadmdadm-b8a8ccf945c72f847e17260feb97fc5da5222106.tar.gz
mdadm-b8a8ccf945c72f847e17260feb97fc5da5222106.tar.xz
mdadm-b8a8ccf945c72f847e17260feb97fc5da5222106.zip
New flag --no-degraded
Use to avoid starting arrays if there are fewer devices available than last time the array was started. This is only needed with --scan, as with --scan, that behaviour is the default. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index 26a2744..acae2d7 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -577,6 +577,10 @@ int main(int argc, char *argv[])
fprintf(stderr, Name ": '--update %s' invalid. Only 'sparc2.2', 'super-minor', 'uuid', 'resync' or 'summaries' supported\n",update);
exit(2);
+ case O(ASSEMBLE,4): /* --no-degraded */
+ runstop = -1; /* --stop isn't allowed for --assemble, so we overload slightly */
+ continue;
+
case O(ASSEMBLE,'c'): /* config file */
case O(MISC, 'c'):
case O(MONITOR,'c'):