Returning EOF like files do seems consistent with reporting the device's
true size in st_size, which Unix devices also do not do.
___
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd
Roland McGrath <[EMAIL PROTECTED]> writes:
> > when reading past the end of a storeio provided file, you get EIO because
> > offset is equal to the size of the underlying store, but the only offset
> > check is in dev_rw:
>
> EIO is reasonable for a read some distance off the end of the store.
>
> when reading past the end of a storeio provided file, you get EIO because
> offset is equal to the size of the underlying store, but the only offset
> check is in dev_rw:
EIO is reasonable for a read some distance off the end of the store.
Reading precisely at the end should report EOF (return
Hi,
when reading past the end of a storeio provided file, you get EIO because
offset is equal to the size of the underlying store, but the only offset
check is in dev_rw:
if (offs < 0 || offs > dev->store->size)
return EINVAL;
else if (offs + len > dev->store->size)
len = dev->store-