From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBBSp-0006r0-J4 for qemu-devel@nongnu.org; Sat, 25 Sep 2004 08:15:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBBSo-0006qP-HY for qemu-devel@nongnu.org; Sat, 25 Sep 2004 08:15:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBBSo-0006qM-Dz for qemu-devel@nongnu.org; Sat, 25 Sep 2004 08:15:42 -0400 Received: from [213.146.130.142] (helo=trantor.org.uk) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CBBMB-0004Og-RH for qemu-devel@nongnu.org; Sat, 25 Sep 2004 08:08:53 -0400 Subject: Re: [Qemu-devel] [PATCH] DOSEMU image file support From: Gianni Tedesco In-Reply-To: <1096113872.2913.132.camel@sherbert> References: <20040902171512.61266d0e.hampa@hampa.ch> <4137454D.8080202@bellard.org> <20040902190014.33359ecd.hampa@hampa.ch> <41375469.9050508@bellard.org> <1096113872.2913.132.camel@sherbert> Content-Type: text/plain Date: Sat, 25 Sep 2004 13:08:36 +0100 Message-Id: <1096114116.3385.135.camel@sherbert> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sat, 2004-09-25 at 13:04 +0100, Gianni Tedesco wrote: > On Thu, 2004-09-02 at 19:12 +0200, Fabrice Bellard wrote: > > > The reason I used stdio is that read/write are non-blocking. It is > > > not an error for read to return fewer bytes than requested. If that > > > happens, the other block drivers fail. > > > > I agree, but for disk accesses it is usual to assume they return the > > requested amount of bytes. fread/fwrite are buffered I/Os which is a bit > > overkill for block drivers. > > Heh, > > Not if an unmasked signal is received on NFS mounted soft/intr. That is > because POSIX "allows a read that is interrupted after reading some data > to return -1 (with errno set to EINTR) or to return the number of bytes > already read." Ignore me. I read "disk" as "filesystem". Either way, POSIX says things are allowed to change - and we should probably be allowing for images on network filesystems anyway... -- // Gianni Tedesco (gianni at scaramanga dot co dot uk) lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D