summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:14:59 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:14:59 +1100
commit7e0f69790c47b21c4aa7636a4b05925687c80a6e (patch)
treedd297e3cbc3d53075e2f0ee4c76a6aa071dc3d4d /util.c
parent06c7f68e40134cbef3186426ebf63c4f6d4e30f5 (diff)
downloadmdadm-7e0f69790c47b21c4aa7636a4b05925687c80a6e.tar.gz
mdadm-7e0f69790c47b21c4aa7636a4b05925687c80a6e.tar.xz
mdadm-7e0f69790c47b21c4aa7636a4b05925687c80a6e.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 732bc1c..dd8b176 100644
--- a/util.c
+++ b/util.c
@@ -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;