Re: storeio and libstore bugs

2002-03-11 Thread Roland McGrath
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

Re: storeio and libstore bugs

2002-03-10 Thread Thomas Bushnell, BSG
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. >

Re: storeio and libstore bugs

2002-03-10 Thread Roland McGrath
> 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

storeio and libstore bugs

2002-03-10 Thread Marcus Brinkmann
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-