diff options
author | dd <dd@FreeBSD.org> | 2001-12-20 06:38:21 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-12-20 06:38:21 +0000 |
commit | 23c182dfdf48843816cc4f20e488b85364a63cdf (patch) | |
tree | bb473f7ecf79394e88144d815f8e6e0527f22ab8 /sbin/mdconfig/mdconfig.c | |
parent | 13c8600e2d9f57c039042afb0f88c1446be4d61d (diff) | |
download | FreeBSD-src-23c182dfdf48843816cc4f20e488b85364a63cdf.zip FreeBSD-src-23c182dfdf48843816cc4f20e488b85364a63cdf.tar.gz |
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
Diffstat (limited to 'sbin/mdconfig/mdconfig.c')
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |