From afbbf073eda5a4a9f7a67d4dd890c3c6af44fb83 Mon Sep 17 00:00:00 2001 From: Adam Kwolek Date: Wed, 8 Jun 2011 16:28:40 +1000 Subject: [PATCH] Define dummy functions to mdmon.c Definitions are necessary to compile mdmon. Metadata specific source code is compiled to mdmon. Functions used for reshape check pointing: - restore_stripes() - save_stripes - abort_reshape are not used in mdmon, but they are compiled in it. To enable mdmon compilation, dummy functions are used. Signed-off-by: Adam Kwolek Signed-off-by: Krzysztof Wojcik Signed-off-by: NeilBrown --- mdmon.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/mdmon.c b/mdmon.c index a51a94f..d633cb0 100644 --- a/mdmon.c +++ b/mdmon.c @@ -527,3 +527,26 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, { return 0; } + +int restore_stripes(int *dest, unsigned long long *offsets, + int raid_disks, int chunk_size, int level, int layout, + int source, unsigned long long read_offset, + unsigned long long start, unsigned long long length, + char *src_buf) +{ + return 1; +} + +void abort_reshape(struct mdinfo *sra) +{ + return; +} + +int save_stripes(int *source, unsigned long long *offsets, + int raid_disks, int chunk_size, int level, int layout, + int nwrites, int *dest, + unsigned long long start, unsigned long long length, + char *buf) +{ + return 0; +}