From: Krzysztof Wojcik <krzysztof.wojcik@xxxxxxxxx> The manage_reshape vector is intended to be be used as reshape process supervisor for external metadata types. This patch introduces dummy function and necessary definitions. Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@xxxxxxxxx> --- Grow.c | 7 ++++--- super-intel.c | 12 ++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Grow.c b/Grow.c index 8fdb597..9e0a51d 100644 --- a/Grow.c +++ b/Grow.c @@ -1941,9 +1941,10 @@ static int reshape_array(char *container, int fd, char *devname, if (st->ss->external) { /* metadata handler takes it from here */ ping_manager(container); - st->ss->manage_reshape(st, backup_file); - frozen = 0; - goto release; + if (st->ss->manage_reshape(st, backup_file) != 1) { + frozen = 0; + goto release; + } } /* set up the backup-super-block. This requires the diff --git a/super-intel.c b/super-intel.c index c4100ef..17737cf 100644 --- a/super-intel.c +++ b/super-intel.c @@ -6432,6 +6432,17 @@ static int imsm_reshape_super(struct supertype *st, long long size, int level, return ret_val; } +/* function: manage_reshape_imsm +* Parameters: supertype structure, backup file +* Returms: 0 on success, +* -1 if failed, +* 1 - management of process not supported +*/ +int manage_reshape_imsm(struct supertype *st, char *backup) +{ + return 1; +} + struct superswitch super_imsm = { #ifndef MDASSEMBLE .examine_super = examine_super_imsm, @@ -6469,6 +6480,7 @@ struct superswitch super_imsm = { .default_geometry = default_geometry_imsm, .get_disk_controller_domain = imsm_get_disk_controller_domain, .reshape_super = imsm_reshape_super, + .manage_reshape = manage_reshape_imsm, .external = 1, .name = "imsm", -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html