diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-06-08 16:28:40 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-06-08 16:28:40 +1000 |
commit | afbbf073eda5a4a9f7a67d4dd890c3c6af44fb83 (patch) | |
tree | e1361938776936346bb880f6cb8f800bea2c64e1 /mdmon.c | |
parent | 2fcb75aea1378acb22c3ecacb7dfdafe093104fe (diff) |
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 <adam.kwolek@intel.com>
Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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; +} |