Date: Sat, 20 Nov 1999 00:16:03 -0800 (PST) From: Doug White <dwhite@resnet.uoregon.edu> To: Zhihui Zhang <zzhang@cs.binghamton.edu> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: What are short read and short write? Message-ID: <Pine.BSF.4.21.9911200014180.55276-100000@resnet.uoregon.edu> In-Reply-To: <Pine.GSO.3.96.991119120023.23292A-100000@sol.cs.binghamton.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.9911200014180.55276-100000>