summaryrefslogtreecommitdiff
path: root/Monitor.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-12-09 13:06:29 +1100
committerNeilBrown <neilb@suse.de>2010-12-09 13:06:29 +1100
commit833bb0f8f61c576895a2ec90c344c148c08dadba (patch)
treea94afa659cd2d01366009d3b0df2c77d473f92f9 /Monitor.c
parent691a36b76f871a63a327641589f41e968b05afa9 (diff)
Allow --update=devicesize with --re-add
This is useful with 1.1 and 1.2 metadata to update the metadata if the device size has changed. The same functionality can be achieved by writing to the device size in sysfs after re-adding normally, but in some cases this might be easier. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Monitor.c')
-rw-r--r--Monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Monitor.c b/Monitor.c
index 61550ee0..af701939 100644
--- a/Monitor.c
+++ b/Monitor.c
@@ -739,9 +739,9 @@ static int move_spare(struct state *from, struct state *to,
sprintf(devname, "%d:%d", major(devid), minor(devid));
devlist.disposition = 'r';
- if (Manage_subdevs(from->devname, fd2, &devlist, -1, 0) == 0) {
+ if (Manage_subdevs(from->devname, fd2, &devlist, -1, 0, NULL) == 0) {
devlist.disposition = 'a';
- if (Manage_subdevs(to->devname, fd1, &devlist, -1, 0) == 0) {
+ if (Manage_subdevs(to->devname, fd1, &devlist, -1, 0, NULL) == 0) {
alert("MoveSpare", to->devname, from->devname, info);
/* make sure we will see newly added spare before next
* time through loop
@@ -752,7 +752,7 @@ static int move_spare(struct state *from, struct state *to,
close(fd2);
return 1;
}
- else Manage_subdevs(from->devname, fd2, &devlist, -1, 0);
+ else Manage_subdevs(from->devname, fd2, &devlist, -1, 0, NULL);
}
close(fd1);
close(fd2);