From 999b497251a9db3c284c3ebd69d0d5e1903dd8dd Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 12 Jan 2011 14:46:17 +1100 Subject: 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 --- mdmon.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdmon.c') 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; +} -- cgit v1.2.3