summaryrefslogtreecommitdiff
path: root/Query.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:14:33 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:14:33 +1100
commit3da92f272d017b1817b13f37f41c1ed4d6117291 (patch)
treeb0013cdf438a640150e13388ebf7d64992be3737 /Query.c
parent64557c33917a6f661d091e36ab00065d4107dcee (diff)
downloadmdadm-3da92f272d017b1817b13f37f41c1ed4d6117291.tar.gz
Drop the superblock arg from all metadata methods.
It is now in the 'supertype'
Diffstat (limited to 'Query.c')
-rw-r--r--Query.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Query.c b/Query.c
index 19b2ce5..0802964 100644
--- a/Query.c
+++ b/Query.c
@@ -43,7 +43,6 @@ int Query(char *dev)
int superror, superrno;
struct mdinfo info;
mdu_array_info_t array;
- void *super;
struct supertype *st = NULL;
unsigned long long larray_size;
@@ -89,14 +88,14 @@ int Query(char *dev)
}
st = guess_super(fd);
if (st) {
- superror = st->ss->load_super(st, fd, &super, dev);
+ superror = st->ss->load_super(st, fd, dev);
superrno = errno;
} else
superror = -1;
close(fd);
if (superror == 0) {
/* array might be active... */
- st->ss->getinfo_super(st, &info, super);
+ st->ss->getinfo_super(st, &info);
if (st->ss->major == 0) {
mddev = get_md_name(info.array.md_minor);
disc.number = info.disk.number;