diff options
author | Neil Brown <neilb@suse.de> | 2007-12-14 20:14:16 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-12-14 20:14:16 +1100 |
commit | 68c7d6d790f856b4e8301d0afa7fc6873a0d4bb8 (patch) | |
tree | 56f8b050b39fb8008a8b25310fc6f9609796fc26 /util.c | |
parent | df37ffc0393b919ba5607bb48b2eaf2f9a1832d7 (diff) | |
download | mdadm-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 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -333,8 +333,8 @@ 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, super); - st->ss->free_super(super); + st->ss->getinfo_super(st, &info, super); + st->ss->free_super(st, super); crtime = info.array.ctime; level = map_num(pers, info.array.level); if (!level) level = "-unknown-"; @@ -763,7 +763,7 @@ struct supertype *guess_super(int fd) rv = ss->load_super(st, fd, &sbp, NULL); if (rv == 0) { struct mdinfo info; - ss->getinfo_super(&info, sbp); + st->ss->getinfo_super(st, &info, sbp); if (bestsuper == -1 || besttime < info.array.ctime) { bestsuper = i; |