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
This commit is contained in:
parent
6bccea7c2b
commit
bcaa6ebc45
@ -75,8 +75,7 @@ format_track(int fd, int cyl, int secs, int head, int rate,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user