mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218910
@ -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_secno(i) = il[i+1];
|
||||||
f.fd_formb_secsize(i) = secsize;
|
f.fd_formb_secsize(i) = secsize;
|
||||||
}
|
}
|
||||||
if(ioctl(fd, FD_FORM, (caddr_t)&f) < 0)
|
(void)ioctl(fd, FD_FORM, (caddr_t)&f);
|
||||||
err(EX_OSERR, "ioctl(FD_FORM)");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user