X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=super-mbr.c;h=0129fd695223020ebb6f7f4d2952a7cd235f7395;hb=f80c8614b0014fde1220591fcc4a1365c9cde0c4;hp=811ad1dcb1422c153e5d462c24a0f8995d3e3ea5;hpb=0f22b998fb9cf8478810b89cd50fa5b4fbf11d38;p=thirdparty%2Fmdadm.git diff --git a/super-mbr.c b/super-mbr.c index 811ad1dc..0129fd69 100644 --- a/super-mbr.c +++ b/super-mbr.c @@ -80,9 +80,6 @@ static int load_super_mbr(struct supertype *st, int fd, char *devname) free_mbr(st); - if (st->subarray[0]) - return 1; - if (posix_memalign((void**)&super, 512, 512) != 0) { fprintf(stderr, Name ": %s could not allocate superblock\n", __func__); @@ -148,7 +145,7 @@ static int store_mbr(struct supertype *st, int fd) return 0; } -static void getinfo_mbr(struct supertype *st, struct mdinfo *info) +static void getinfo_mbr(struct supertype *st, struct mdinfo *info, char *map) { struct MBR *sb = st->sb; int i;