From 5d90d2c13c0f40dfc23601efe8633493d9a8fb78 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 5 Jan 1996 22:06:31 +0000 Subject: Return errors regardless of *DATALEN--reads are all or nothing. --- libdiskfs/io-read.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libdiskfs/io-read.c') diff --git a/libdiskfs/io-read.c b/libdiskfs/io-read.c index fc6faf88..96a480cd 100644 --- a/libdiskfs/io-read.c +++ b/libdiskfs/io-read.c @@ -63,14 +63,8 @@ diskfs_S_io_read (struct protid *cred, *datalen = maxread; if (maxread) - { - err = _diskfs_rdwr_internal (np, buf, off, datalen, 0, - cred->po->openstat & O_NOATIME); - if (*datalen) - /* If we read any, we can just return a short read count - with no error; the next read will hit the error again. */ - err = 0; - } + err = _diskfs_rdwr_internal (np, buf, off, datalen, 0, + cred->po->openstat & O_NOATIME); else err = 0; if (diskfs_synchronous) -- cgit v1.2.3