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/arch/arc/dev/fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/arc') diff --git a/sys/arch/arc/dev/fd.c b/sys/arch/arc/dev/fd.c index 3a98739bb0f..815376cb382 100644 --- a/sys/arch/arc/dev/fd.c +++ b/sys/arch/arc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.5 1997/04/19 17:19:52 pefo Exp $ */ +/* $OpenBSD: fd.c,v 1.6 1998/10/03 21:18:57 millert Exp $ */ /* $NetBSD: fd.c,v 1.78 1995/07/04 07:23:09 mycroft Exp $ */ /*- @@ -1109,7 +1109,7 @@ fdioctl(dev, cmd, addr, flag) buffer.d_type = DTYPE_FLOPPY; buffer.d_secsize = FDC_BSIZE; - if (readdisklabel(dev, fdstrategy, &buffer, NULL) != NULL) + if (readdisklabel(dev, fdstrategy, &buffer, NULL, 0) != NULL) return EINVAL; *(struct disklabel *)addr = buffer; -- cgit v1.2.3