summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-10 23:09:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-10 23:09:51 +0000
commit73133402a1bb286ffa486769bed64ff875f7060d (patch)
tree0a22006c55f3dc9123acc199c45bbcacb062990d /sys/dev/isa/wd.c
parentd597a5f27fd0e5e7d9f14fcf6fd466fc5ba278d1 (diff)
support DIOCRLDINFO
Diffstat (limited to 'sys/dev/isa/wd.c')
-rw-r--r--sys/dev/isa/wd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c
index 56e6ebdbfdc..149a668a832 100644
--- a/sys/dev/isa/wd.c
+++ b/sys/dev/isa/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.40 1999/05/09 20:40:43 weingart Exp $ */
+/* $OpenBSD: wd.c,v 1.41 1999/08/10 23:09:49 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -661,6 +661,10 @@ wdioctl(dev, xfer, addr, flag, p)
return 0;
#endif
+ case DIOCRLDINFO:
+ wdgetdisklabel(dev, wd, wd->sc_dk.dk_label,
+ wd->sc_dk.dk_cpulabel, 0);
+ return 0;
case DIOCGPDINFO: {
struct cpu_disklabel osdep;