From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 18 18:40:05 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00440106566B for ; Thu, 18 Sep 2008 18:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E25768FC18 for ; Thu, 18 Sep 2008 18:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8IIe4IZ058500 for ; Thu, 18 Sep 2008 18:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8IIe4Gk058499; Thu, 18 Sep 2008 18:40:04 GMT (envelope-from gnats) Date: Thu, 18 Sep 2008 18:40:04 GMT Message-Id: <200809181840.m8IIe4Gk058499@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: John Baldwin Cc: Subject: Re: kern/103862: [fd] Error with fdformat on -CURRENT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2008 18:40:05 -0000 The following reply was made to PR kern/103862; it has been noted by GNATS. From: John Baldwin To: bug-followup@FreeBSD.org, beech@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