summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-03-27 04:34:38 +0000
committerNeil Brown <neilb@suse.de>2006-03-27 04:34:38 +0000
commit313176636ee8c24cf1464cfec159d41ffcffacb3 (patch)
tree866eefc2751994b4d598dcc524b2e192cf7028bd /util.c
parent2efedc7bd23b4796fcf535cb28f796b235aff9ca (diff)
downloadmdadm-313176636ee8c24cf1464cfec159d41ffcffacb3.tar.gz
mdadm-313176636ee8c24cf1464cfec159d41ffcffacb3.tar.xz
mdadm-313176636ee8c24cf1464cfec159d41ffcffacb3.zip
Remove ident arg from getinfo_super;
Add a 'name' field to 'info' to compensate. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util.c b/util.c
index 0af4331..ff17500 100644
--- a/util.c
+++ b/util.c
@@ -248,7 +248,6 @@ int check_raid(int fd, char *name)
{
void *super;
struct mdinfo info;
- struct mddev_ident_s ident;
time_t crtime;
char *level;
struct supertype *st = guess_super(fd);
@@ -258,7 +257,7 @@ int check_raid(int fd, char *name)
/* Looks like a raid array .. */
fprintf(stderr, Name ": %s appears to be part of a raid array:\n",
name);
- st->ss->getinfo_super(&info, &ident, super);
+ st->ss->getinfo_super(&info, super);
free(super);
crtime = info.array.ctime;
level = map_num(pers, info.array.level);
@@ -653,8 +652,7 @@ struct supertype *guess_super(int fd)
rv = ss->load_super(st, fd, &sbp, NULL);
if (rv == 0) {
struct mdinfo info;
- struct mddev_ident_s ident;
- ss->getinfo_super(&info, &ident, sbp);
+ ss->getinfo_super(&info, sbp);
if (bestsuper == -1 ||
besttime < info.array.ctime) {
bestsuper = i;