int fd = open(dev, O_RDONLY);
int vers;
int ioctlerr;
- int superror, superrno;
+ int superror;
struct mdinfo info;
mdu_array_info_t array;
struct supertype *st = NULL;
array.spare_disks, array.spare_disks==1?"":"s");
}
st = guess_super(fd);
- if (st) {
+ if (st)
superror = st->ss->load_super(st, fd, dev);
- superrno = errno;
- } else
+ else
superror = -1;
close(fd);
if (superror == 0) {