summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-02-24 18:45:57 -0700
committerDan Williams <dan.j.williams@intel.com>2009-02-24 18:45:57 -0700
commitfdb482f99b9ad2ef8cd1724902fdfeedaa8796a1 (patch)
tree62774bdd00a49fc06c9fd6d81cec9a4f379e0eaf /mdadm.c
parente12e1d1d6abd79bbc3406a78149db8732c0c8dd6 (diff)
downloadmdadm-fdb482f99b9ad2ef8cd1724902fdfeedaa8796a1.tar.gz
mdadm-fdb482f99b9ad2ef8cd1724902fdfeedaa8796a1.tar.xz
mdadm-fdb482f99b9ad2ef8cd1724902fdfeedaa8796a1.zip
Incremental: honor --no-degraded to delay assembly
Currently Incremental_container is being called after adding each disk. In the imsm case where spares are not tracked in the raid_disks field we can use --no-degraded to block premature assembly. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index 1f9b707..72e7926 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -644,6 +644,7 @@ int main(int argc, char *argv[])
" 'summaries', 'homehost', 'byteorder', 'devicesize'.\n");
exit(outf == stdout ? 0 : 2);
+ case O(INCREMENTAL,NoDegraded):
case O(ASSEMBLE,NoDegraded): /* --no-degraded */
runstop = -1; /* --stop isn't allowed for --assemble,
* so we overload slightly */