summaryrefslogtreecommitdiff
path: root/sys/dev/atapi
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/atapi
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/atapi')
-rw-r--r--sys/dev/atapi/acd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c
index 2efee890feb..344a24fb7ab 100644
--- a/sys/dev/atapi/acd.c
+++ b/sys/dev/atapi/acd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acd.c,v 1.32 1998/07/12 01:20:20 deraadt Exp $ */
+/* $OpenBSD: acd.c,v 1.33 1998/10/03 21:18:59 millert Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
@@ -1070,10 +1070,10 @@ acdgetdisklabel(acd)
* does not yet work, for unknown reasons.
*/
errstring = readdisklabel(MAKECDDEV(0, acd->sc_dev.dv_unit,
- data_track), acdstrategy, lp, acd->sc_dk.dk_cpulabel);
+ data_track), acdstrategy, lp, acd->sc_dk.dk_cpulabel, 0);
#else
errstring = readdisklabel(MAKECDDEV(0, acd->sc_dev.dv_unit,
- RAW_PART), acdstrategy, lp, acd->sc_dk.dk_cpulabel);
+ RAW_PART), acdstrategy, lp, acd->sc_dk.dk_cpulabel, 0);
#endif
/*if (errstring)
printf("%s: %s\n", acd->sc_dev.dv_xname, errstring);*/