Displaying 1 result from an estimated 1 matches for "rda0s1f".
Did you mean:
da0s1f
2003 Sep 06
0
KERNEL BUG: lseek() broken on raw devices
Hi,
I just figured FreeBSD will happily write data (disk blocks) from byte
#0 even after successful lseek(fd, 17, SEEK_SET) returned 17, at least
on da(4) partitions such as rda0s1f. Tested on 4.9-PRERELEASE checked
out early Sep 5th.
I'd suggest that lseek to a non-sector boundary returns either (off_t)-1
and EINVAL (preferred) or at least returns the actual position (though
few applications will handle that properly), or that write() returns -1
and EINVAL when writing t...