On Fri, 19 Nov 1999, Zhihui Zhang wrote:
>
> Can anyone explain for me what are short read and short write? Under what
> circumstances will they happen and how FreeBSD deals with them? I come
> to this question while looking at code in file ufs/ufs_readwrite.c.
A ``short read'' or ``short write'' are when the read() and write() system
calls return less data than requested. For example, if you had the read
call
read(fd, &buf, 1024)
and read could pull only 512 bytes from the file descriptor, read() would
return 512 and that would be a short read.
Doug White | FreeBSD: The Power to Serve
[EMAIL PROTECTED] | www.FreeBSD.org
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message