Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2008 18:40:04 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/103862: [fd] Error with fdformat on -CURRENT
Message-ID:  <200809181840.m8IIe4Gk058499@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/103862; it has been noted by GNATS.

From: John Baldwin <jhb@FreeBSD.org>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809181840.m8IIe4Gk058499>