Skip to contentSkip to conversation

2.4.19 revert block_llseek behavior to standard

PATCH Peter Chubb 1 participant 1 message Aug 12, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Christoph" == Christoph Hellwig <[email protected]> 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 [email protected]
You are lost in a maze of BitKeeper repositories, all almost the same.