diff options
author | Neil Brown <neilb@suse.de> | 2006-05-19 04:53:22 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-19 04:53:22 +0000 |
commit | b8a8ccf945c72f847e17260feb97fc5da5222106 (patch) | |
tree | 996cd1e5bbeeb5209c372ab66cc03b75b039ef8a /mdadm.c | |
parent | 008e1100b80c571427ba8230bf04928ba0de8bcb (diff) | |
download | mdadm-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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'): |