Signed-off-by: NeilBrown <neilb@suse.de>
return open_mddev(dev, 0);
}
#endif
-int map_update(struct map_ent **mpp, int devnum, char *metadata,
+int map_update(struct map_ent **mpp, char *devnm, char *metadata,
int *uuid, char *path)
{
return 0;
{
return NULL;
}
+int map_lock(struct map_ent **melp){return 0;}
+void map_unlock(struct map_ent **melp){}
+struct map_ent *map_by_uuid(struct map_ent **map, int uuid[4]){return NULL;}
int rv;
int mdfd = -1;
long bm_sectors = 0;
long space;
+#ifndef MDASSEMBLE
if (sb->feature_map & __cpu_to_le32(MD_FEATURE_BITMAP_OFFSET)) {
struct bitmap_super_s *bsb;
bsb = (struct bitmap_super_s *)(((char*)sb)+MAX_SB_SIZE);
bm_sectors = bitmap_sectors(bsb);
}
-
+#endif
if (sb_offset < data_offset) {
/* 1.1 or 1.2. Put bbl just before data
*/
return data_disks;
}
-#if !defined(MDASSEMBLE) || defined(MDASSEMBLE) && defined(MDASSEMBLE_AUTO)
int devnm2devid(char *devnm)
{
return 0;
}
+#if !defined(MDASSEMBLE) || defined(MDASSEMBLE) && defined(MDASSEMBLE_AUTO)
char *get_md_name(char *devnm)
{
/* find /dev/md%d or /dev/md/%d or make a device /dev/.tmp.md%d */