summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wd.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-03 21:19:02 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-03 21:19:02 +0000
commit2847382ad0f79d42676104f5b99c1b14a78a5b90 (patch)
tree3e173e06925848427cc197fb15b7a2d7b3e5c12c /sys/dev/isa/wd.c
parent17219f15915dee86717b444ef5a7e0c11c2e9bb4 (diff)
Add a "spoofonly" argument to readdisklabel() which will be used to
implement an ioctl to get a spoofed label even for disks that have a label on them.
Diffstat (limited to 'sys/dev/isa/wd.c')
-rw-r--r--sys/dev/isa/wd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c
index 772bd590d5d..ae447d4ecc5 100644
--- a/sys/dev/isa/wd.c
+++ b/sys/dev/isa/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.36 1998/10/01 04:23:54 millert Exp $ */
+/* $OpenBSD: wd.c,v 1.37 1998/10/03 21:19:00 millert Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -577,7 +577,7 @@ wdgetdisklabel(dev, wd)
if (d_link->sc_state > RECAL)
d_link->sc_state = RECAL;
errstring = readdisklabel(WDLABELDEV(dev), wdstrategy, lp,
- wd->sc_dk.dk_cpulabel);
+ wd->sc_dk.dk_cpulabel, 0);
if (errstring) {
/*
* This probably happened because the drive's default
@@ -588,7 +588,7 @@ wdgetdisklabel(dev, wd)
if (d_link->sc_state > GEOMETRY)
d_link->sc_state = GEOMETRY;
errstring = readdisklabel(WDLABELDEV(dev), wdstrategy, lp,
- wd->sc_dk.dk_cpulabel);
+ wd->sc_dk.dk_cpulabel, 0);
}
if (errstring) {
/*printf("%s: %s\n", wd->sc_dev.dv_xname, errstring);*/