From 23c182dfdf48843816cc4f20e488b85364a63cdf Mon Sep 17 00:00:00 2001
From: dd
Date: Thu, 20 Dec 2001 06:38:21 +0000
Subject: Actually make use of the md_version field of 'struct mdio'. In order
not to needlessly break compatibility, decrement MDIOVERSION to 0.
Approved by: phk
---
sbin/mdconfig/mdconfig.c | 2 ++
1 file changed, 2 insertions(+)
(limited to 'sbin/mdconfig')
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index b536762..8a6019f 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -161,6 +161,7 @@ main(int argc, char **argv)
usage();
}
}
+ mdio.md_version = MDIOVERSION;
mdmaybeload();
fd = open("/dev/" MDCTL_NAME, O_RDWR, 0);
@@ -253,6 +254,7 @@ int
query(const int fd, const int unit)
{
+ mdio.md_version = MDIOVERSION;
mdio.md_unit = unit;
if (ioctl(fd, MDIOCQUERY, &mdio) < 0)
--
cgit v1.1