diff options
author | NeilBrown <neilb@suse.de> | 2013-09-13 02:51:20 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-09-13 02:51:20 +0200 |
commit | d5a4041647d2b3328ce45ff727afe37477f07c75 (patch) | |
tree | e7336c6408b3631cf00cee4e010f96dacf2e9814 /mdadm.c | |
parent | DDF: brief_examine_subarrays_ddf: print array name (diff) | |
download | mdadm-d5a4041647d2b3328ce45ff727afe37477f07c75.tar.xz mdadm-d5a4041647d2b3328ce45ff727afe37477f07c75.zip |
Make -IRs and --run work properly for containers.
We really need to make sure assemble_container_content()
gets called to finished the assembly of these.
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 | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1293,7 +1293,7 @@ int main(int argc, char *argv[]) if (!rv && c.readonly < 0) rv = Manage_ro(devlist->devname, mdfd, c.readonly); if (!rv && c.runstop > 0) - rv = Manage_run(devlist->devname, mdfd, c.verbose); + rv = Manage_run(devlist->devname, mdfd, &c); if (!rv && c.runstop < 0) rv = Manage_stop(devlist->devname, mdfd, c.verbose, 0); break; @@ -1535,7 +1535,7 @@ int main(int argc, char *argv[]) pr_err("--incremental --scan --fail not supported.\n"); break; } - rv = IncrementalScan(c.verbose, NULL); + rv = IncrementalScan(&c, NULL); } if (!devlist) { if (!rebuild_map && !c.scan) { @@ -1804,7 +1804,8 @@ static int misc_list(struct mddev_dev *devlist, if (mdfd>=0) { switch(dv->disposition) { case 'R': - rv |= Manage_run(dv->devname, mdfd, c->verbose); break; + c->runstop = 1; + rv |= Manage_run(dv->devname, mdfd, c); break; case 'S': rv |= Manage_stop(dv->devname, mdfd, c->verbose, 0); break; case 'o': |