Author: brucec
Date: Mon Feb 21 09:56:08 2011
New Revision: 218910
URL: http://svn.freebsd.org/changeset/base/218910

Log:
  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.
  Ignore any errors when using the FD_FORM ioctl.
  
  PR:   kern/103862
  MFC after:    3 days

Modified:
  head/usr.sbin/fdformat/fdformat.c

Modified: head/usr.sbin/fdformat/fdformat.c
==============================================================================
--- head/usr.sbin/fdformat/fdformat.c   Mon Feb 21 09:01:34 2011        
(r218909)
+++ head/usr.sbin/fdformat/fdformat.c   Mon Feb 21 09:56:08 2011        
(r218910)
@@ -75,8 +75,7 @@ format_track(int fd, int cyl, int secs, 
                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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to