kern/103862: [fd] Error with fdformat on -CURRENT
John Baldwin
jhb at FreeBSD.org
Thu Sep 18 18:40:05 UTC 2008
The following reply was made to PR kern/103862; it has been noted by GNATS.
From: John Baldwin <jhb at FreeBSD.org>
To: bug-followup at FreeBSD.org, beech at alaskaparadise.com
Cc:
Subject: Re: kern/103862: [fd] Error with fdformat on -CURRENT
Date: Thu, 18 Sep 2008 10:59:05 -0400
The FD_FORM ioctl used to ignore errors from the floppy controller, now when
it encounters an error it returns an error from the ioctl. The patch below
changes fdformat to just ignore those errors (which it was doing before).
Index: fdformat.c
===================================================================
--- fdformat.c (revision 183112)
+++ fdformat.c (working copy)
@@ -75,8 +75,7 @@
f.fd_formb_secno(i) = il[i+1];
f.fd_formb_secsize(i) = secsize;
}
- if(ioctl(fd, FD_FORM, (caddr_t)&f) < 0)
- err(EX_OSERR, "ioctl(FD_FORM)");
+ (void)ioctl(fd, FD_FORM, (caddr_t)&f);
}
static int
--
John Baldwin
More information about the freebsd-bugs
mailing list