diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 12:27:37 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 12:27:37 +0200 |
commit | b8ac1967953fea50f0ec1e1650a3a9f52e6525d8 (patch) | |
tree | 5571de13f84fcfb82fe595960d43192e7866c66c /sysfs.c | |
parent | Use text_version in map_file rather than major.minor. (diff) | |
download | mdadm-b8ac1967953fea50f0ec1e1650a3a9f52e6525d8.tar.xz mdadm-b8ac1967953fea50f0ec1e1650a3a9f52e6525d8.zip |
Remove 'major' from superswitch.
It isn't generally meaningful.
Diffstat (limited to 'sysfs.c')
-rw-r--r-- | sysfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -134,10 +134,12 @@ struct mdinfo *sysfs_read(int fd, int devnum, unsigned long options) sra->array.major_version = -1; sra->array.minor_version = -2; strcpy(sra->text_version, buf+9); - } else + } else { sscanf(buf, "%d.%d", &sra->array.major_version, &sra->array.minor_version); + strcpy(sra->text_version, buf); + } } if (options & GET_LEVEL) { strcpy(base, "level"); |