diff options
author | NeilBrown <neilb@suse.de> | 2011-01-12 04:46:17 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-01-12 04:46:17 +0100 |
commit | 999b497251a9db3c284c3ebd69d0d5e1903dd8dd (patch) | |
tree | 95501c393e57df967fb5c50761e6448a493c1ec9 /mdmon.c | |
parent | Move setup of backup superblock into child_monitor (diff) | |
download | mdadm-999b497251a9db3c284c3ebd69d0d5e1903dd8dd.tar.xz mdadm-999b497251a9db3c284c3ebd69d0d5e1903dd8dd.zip |
Make child_monitor a candidate for ->manage_reshape
Child_monitor was design to perform 'manage_reshape' for native
arrays. So change the signature for ->manage_reshape to match
child_monitor and move the all to the same place that child_monitor
is called from.
Also give super-intel a manage_reshape handler which simple calls
child_monitor.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -517,3 +517,12 @@ static int mdmon(char *devname, int devnum, int must_fork, int takeover) exit(0); } + +/* Some stub functions so super-* can link with us */ +int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, + struct supertype *st, unsigned long blocks, + int *fds, unsigned long long *offsets, + int dests, int *destfd, unsigned long long *destoffsets) +{ + return 0; +} |