summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-09 09:22:09 +0200
committerNeilBrown <neilb@suse.de>2012-07-09 09:22:09 +0200
commit32754b7d8474b34fc5ab0e629e43f30e3a50d408 (patch)
treee2d51ef8ac3527d058f66e3aa19b3245332ae1ea /mdadm.c
parentUse new 'struct shape' to pass args to Create (diff)
downloadmdadm-32754b7d8474b34fc5ab0e629e43f30e3a50d408.tar.xz
mdadm-32754b7d8474b34fc5ab0e629e43f30e3a50d408.zip
Use new struct context and struct shape in Grow_reshape
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdadm.c b/mdadm.c
index 2cb56cec..222ba6c4 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1450,10 +1450,8 @@ int main(int argc, char *argv[])
c.verbose);
else if (s.size > 0 || s.raiddisks || s.layout_str != NULL
|| s.chunk != 0 || s.level != UnSet) {
- rv = Grow_reshape(devlist->devname, mdfd, c.verbose, c.backup_file,
- s.size, s.level, s.layout_str, s.chunk, s.raiddisks,
- devlist->next,
- s.assume_clean, c.force);
+ rv = Grow_reshape(devlist->devname, mdfd,
+ devlist->next, &c, &s);
} else if (array_size == 0)
pr_err("no changes to --grow\n");
break;