diff options
author | Neil Brown <neilb@suse.de> | 2007-12-14 20:14:59 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-12-14 20:14:59 +1100 |
commit | 7e0f69790c47b21c4aa7636a4b05925687c80a6e (patch) | |
tree | dd297e3cbc3d53075e2f0ee4c76a6aa071dc3d4d /util.c | |
parent | 06c7f68e40134cbef3186426ebf63c4f6d4e30f5 (diff) |
Replace sysarray with mdinfo
Sure, mdinfo is bigger, but having a uniform structure for lots of things
will make life easier.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -729,7 +729,7 @@ struct supertype *super_by_fd(int fd) int vers; int minor; struct supertype *st = NULL; - struct sysarray *sra; + struct mdinfo *sra; char *verstr = NULL; char version[20]; int i; @@ -737,8 +737,8 @@ struct supertype *super_by_fd(int fd) sra = sysfs_read(fd, 0, GET_VERSION); if (sra) { - vers = sra->major_version; - minor = sra->minor_version; + vers = sra->array.major_version; + minor = sra->array.minor_version; } else { if (ioctl(fd, GET_ARRAY_INFO, &array)) array.major_version = array.minor_version = 0; |