From 82d9eba687c952a9919f756203706285d6c42f07 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 3 May 2005 23:44:40 +0000 Subject: super1 Signed-off-by: Neil Brown Fix raid5 creation with new code. Signed-off-by: Neil Brown --- Query.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Query.c') diff --git a/Query.c b/Query.c index 88df321..4c2c7bf 100644 --- a/Query.c +++ b/Query.c @@ -44,7 +44,7 @@ int Query(char *dev) struct mdinfo info; mdu_array_info_t array; void *super; - struct superswitch *ss = NULL; + struct supertype *st = NULL; unsigned long long larray_size; unsigned long array_size; @@ -95,16 +95,16 @@ int Query(char *dev) array.raid_disks, array.spare_disks, array.spare_disks==1?"":"s"); } - ss = guess_super(fd, dev); - if (ss) { - superror = ss->load_super(fd, &super, dev); + st = guess_super(fd); + if (st) { + superror = st->ss->load_super(st, fd, &super, dev); superrno = errno; } else superror = -1; close(fd); if (superror == 0) { /* array might be active... */ - ss->getinfo_super(&info, super); + st->ss->getinfo_super(&info, super); mddev = get_md_name(info.array.md_minor); disc.number = info.disk.number; activity = "undetected"; -- cgit