[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] DOSEMU image file support
From: |
Gianni Tedesco |
Subject: |
Re: [Qemu-devel] [PATCH] DOSEMU image file support |
Date: |
Sat, 25 Sep 2004 13:08:36 +0100 |
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