Messages in this thread | | | From | Peter Chubb <> | Date | Tue, 13 Aug 2002 08:25:36 +1000 | Subject | Re: [PATCH] 2.4.19 revert block_llseek behavior to standard |
| |
>>>>> "Christoph" == Christoph Hellwig <hch@infradead.org> writes:
Christoph> What's the behaviour of other unix Christoph> systems when seeking beyond the end of block devices?
The seek succeeds;
On a disc-like device, attempts to write at that offset return -1 EFBIG; the first attempt to read at that offset returns 0; subequent ones return -1 and ENXIO.
After the seek, lseek(fd, 0, SEEK_CURRENT) returns the (after end of file) current offset.
At least for the ones I've been able to test on (UNIXWare, Solaris).
-- Dr Peter Chubb peterc@gelato.unsw.edu.au You are lost in a maze of BitKeeper repositories, all almost the same. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |