- st->ss->getinfo_super(st, &info);
- if (st->ss == &super0) {
- mddev = get_md_name(info.array.md_minor);
+ int uuid[4];
+ struct map_ent *me, *map = NULL;
+ st->ss->getinfo_super(st, &info, NULL);
+ st->ss->uuid_from_super(st, uuid);
+ me = map_by_uuid(&map, uuid);
+ if (me) {
+ mddev = me->path;