summaryrefslogtreecommitdiff
path: root/sys/dev/ofw/ofdisk.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/ofw/ofdisk.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/ofw/ofdisk.c')
-rw-r--r--sys/dev/ofw/ofdisk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofdisk.c b/sys/dev/ofw/ofdisk.c
index 132f87017a6..91ce384821a 100644
--- a/sys/dev/ofw/ofdisk.c
+++ b/sys/dev/ofw/ofdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofdisk.c,v 1.3 1997/11/07 08:07:22 niklas Exp $ */
+/* $OpenBSD: ofdisk.c,v 1.4 1998/10/03 21:19:01 millert Exp $ */
/* $NetBSD: ofdisk.c,v 1.3 1996/10/13 01:38:13 christos Exp $ */
/*
@@ -176,8 +176,8 @@ ofdopen(dev, flags, fmt, p)
lp->d_partitions[RAW_PART].p_offset = 0;
lp->d_partitions[RAW_PART].p_size = lp->d_secperunit;
- readdisklabel(MAKEDISKDEV(major(dev), unit, RAW_PART), ofdstrategy,
- lp, of->sc_dk.dk_cpulabel);
+ readdisklabel(MAKEDISKDEV(major(dev), unit, RAW_PART),
+ ofdstrategy, lp, of->sc_dk.dk_cpulabel, 0);
}
switch (fmt) {