From 2847382ad0f79d42676104f5b99c1b14a78a5b90 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 3 Oct 1998 21:19:02 +0000 Subject: 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. --- sys/dev/isa/fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/isa/fd.c') diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index 53a5fc92566..3d81c2add55 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.38 1998/08/08 23:01:13 downsj Exp $ */ +/* $OpenBSD: fd.c,v 1.39 1998/10/03 21:19:00 millert Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -992,7 +992,7 @@ fdioctl(dev, cmd, addr, flag, p) lp->d_magic2 = DISKMAGIC; lp->d_checksum = dkcksum(lp); - errstring = readdisklabel(dev, fdstrategy, lp, &cdl); + errstring = readdisklabel(dev, fdstrategy, lp, &cdl, 0); if (errstring) { /*printf("%s: %s\n", fd->sc_dev.dv_xname, errstring); */ } -- cgit v1.2.3