summaryrefslogtreecommitdiff
path: root/mdmon.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-01-12 14:46:17 +1100
committerNeilBrown <neilb@suse.de>2011-01-12 14:46:17 +1100
commit999b497251a9db3c284c3ebd69d0d5e1903dd8dd (patch)
tree95501c393e57df967fb5c50761e6448a493c1ec9 /mdmon.c
parentda8100ca48c1f0b80d61a9c39e4a409ca09f6a19 (diff)
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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdmon.c b/mdmon.c
index f56e57f3..1f39f165 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -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;
+}