summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:14:16 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:14:16 +1100
commit68c7d6d790f856b4e8301d0afa7fc6873a0d4bb8 (patch)
tree56f8b050b39fb8008a8b25310fc6f9609796fc26 /Detail.c
parentdf37ffc0393b919ba5607bb48b2eaf2f9a1832d7 (diff)
downloadmdadm-68c7d6d790f856b4e8301d0afa7fc6873a0d4bb8.tar.gz
mdadm-68c7d6d790f856b4e8301d0afa7fc6873a0d4bb8.tar.xz
mdadm-68c7d6d790f856b4e8301d0afa7fc6873a0d4bb8.zip
Add 'supertype' arg to almost all metadata methods.
The 'superblock' will be moved into this structure soon.
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Detail.c b/Detail.c
index a579603..cebba6e 100644
--- a/Detail.c
+++ b/Detail.c
@@ -116,10 +116,10 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
int fd2 = dev_open(dv, O_RDONLY);
if (fd2 >=0 && st &&
st->ss->load_super(st, fd2, &super, NULL) == 0) {
- st->ss->getinfo_super(&info, super);
+ st->ss->getinfo_super(st, &info, super);
if (info.array.ctime != array.ctime ||
info.array.level != array.level) {
- st->ss->free_super(super);
+ st->ss->free_super(st, super);
super = NULL;
}
}
@@ -138,7 +138,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
printf("MD_METADATA=%d.%d\n", array.major_version,
array.minor_version);
if (super)
- st->ss->export_super(super);
+ st->ss->export_super(st, super);
goto out;
}
@@ -278,7 +278,7 @@ This is pretty boring
} else if (e && e->percent >= 0)
printf("\n");
if (super && st)
- st->ss->detail_super(super, homehost);
+ st->ss->detail_super(st, super, homehost);
printf(" Number Major Minor RaidDevice State\n");
}
@@ -377,9 +377,9 @@ This is pretty boring
}
if (spares && brief) printf(" spares=%d", spares);
if (super && brief && st)
- st->ss->brief_detail_super(super);
+ st->ss->brief_detail_super(st, super);
if (super)
- st->ss->free_super(super);
+ st->ss->free_super(st, super);
if (brief > 1 && devices) printf("\n devices=%s", devices);
if (brief) printf("\n");