diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-03 21:19:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-03 21:19:02 +0000 |
commit | 2847382ad0f79d42676104f5b99c1b14a78a5b90 (patch) | |
tree | 3e173e06925848427cc197fb15b7a2d7b3e5c12c /sys/scsi/sd.c | |
parent | 17219f15915dee86717b444ef5a7e0c11c2e9bb4 (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/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index b7b3cb127f3..b2749826155 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.30 1998/10/01 05:11:11 millert Exp $ */ +/* $OpenBSD: sd.c,v 1.31 1998/10/03 21:19:01 millert Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /* @@ -863,7 +863,7 @@ sdgetdisklabel(dev, sd) * Call the generic disklabel extraction routine */ errstring = readdisklabel(SDLABELDEV(dev), sdstrategy, lp, - sd->sc_dk.dk_cpulabel); + sd->sc_dk.dk_cpulabel, 0); if (errstring) { /*printf("%s: %s\n", sd->sc_dev.dv_xname, errstring);*/ return; |