diff options
author | NeilBrown <neilb@suse.de> | 2013-08-26 15:24:53 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-08-26 15:24:53 +1000 |
commit | d3786cdcd04fe0f5d8f43f2de4cffccbe4f45fbe (patch) | |
tree | 273fe8c7119f0aa002329073c64bb32a6f4f5280 /mdadm.c | |
parent | 4c0ea7b0d97f73ed18164bfdaa0b59d49e03a6cf (diff) |
Change "mdadm --run" to use the same code as "mdadm --IRs".
Current "mdadm --run /dev/mdX" will not handle external metadata
properly. mdmon won't be started etc.
So use the code from "mdadm -IRs" instead - that already does all
the right things.
Reported-by: Francis Moreau <francis.moro@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1535,7 +1535,7 @@ int main(int argc, char *argv[]) pr_err("--incremental --scan --fail not supported.\n"); break; } - rv = IncrementalScan(c.verbose); + rv = IncrementalScan(c.verbose, NULL); } if (!devlist) { if (!rebuild_map && !c.scan) { |