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 /Manage.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 'Manage.c')
-rw-r--r-- | Manage.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -373,7 +373,7 @@ int Manage_subdevs(char *devname, int fd, * and was temporarily removed, and is now being re-added. * If so, we can simply re-add it. */ - st->ss->uuid_from_super(duuid, dsuper); + st->ss->uuid_from_super(st, duuid, dsuper); /* re-add doesn't work for version-1 superblocks * before 2.6.18 :-( @@ -382,14 +382,14 @@ int Manage_subdevs(char *devname, int fd, get_linux_version() <= 2006018) ; else if (osuper) { - st->ss->uuid_from_super(ouuid, osuper); + st->ss->uuid_from_super(st, ouuid, osuper); if (memcmp(duuid, ouuid, sizeof(ouuid))==0) { /* looks close enough for now. Kernel * will worry about whether a bitmap * based reconstruction is possible. */ struct mdinfo mdi; - st->ss->getinfo_super(&mdi, osuper); + st->ss->getinfo_super(st, &mdi, osuper); disc.major = major(stb.st_rdev); disc.minor = minor(stb.st_rdev); disc.number = mdi.disk.number; @@ -436,7 +436,7 @@ int Manage_subdevs(char *devname, int fd, if (array.not_persistent==0) { if (dv->writemostly) disc.state |= 1 << MD_DISK_WRITEMOSTLY; - st->ss->add_to_super(dsuper, &disc); + st->ss->add_to_super(st, dsuper, &disc); if (st->ss->write_init_super(st, dsuper, &disc, dv->devname)) return 1; } else if (dv->re_add) { |