diff options
author | NeilBrown <neilb@suse.com> | 2015-08-03 11:54:16 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-08-03 11:54:16 +1000 |
commit | 53a087b105ba2ac5a1c3b59ae07a4984c62c8ce3 (patch) | |
tree | 04d2cbfa4ef9b8ca049f2a3ac8c04f2a41f8aa80 /mdadm.h | |
parent | 7d55dca2cce88de443864b1e843dd0faf9142bd7 (diff) | |
download | mdadm-53a087b105ba2ac5a1c3b59ae07a4984c62c8ce3.tar.gz |
mdassemble: include mapfile support.
This does make mdassemble a bit bigger, but it also means
it actually works properly with named arrays.
Ref: https://bbs.archlinux.org/viewtopic.php?id=198196
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -501,18 +501,8 @@ extern int map_update(struct map_ent **mpp, char *devnm, char *metadata, int uuid[4], char *path); extern void map_remove(struct map_ent **map, char *devnm); extern struct map_ent *map_by_uuid(struct map_ent **map, int uuid[4]); -#ifdef MDASSEMBLE -static inline struct map_ent *map_by_devnm(struct map_ent **map, char *name) -{ - return NULL; -} -static inline void map_free(struct map_ent *map) -{ -} -#else extern struct map_ent *map_by_devnm(struct map_ent **map, char *devnm); extern void map_free(struct map_ent *map); -#endif extern struct map_ent *map_by_name(struct map_ent **map, char *name); extern void map_read(struct map_ent **melp); extern int map_write(struct map_ent *mel); |