From 0b3286544a0db042499db7f474d8a131382617dc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 5 Jan 1996 22:07:37 +0000 Subject: Return errors regardless of *AMT--writes are all or nothing. --- libdiskfs/io-write.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libdiskfs/io-write.c') diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c index ebfbf1b5..b74b6fa0 100644 --- a/libdiskfs/io-write.c +++ b/libdiskfs/io-write.c @@ -71,10 +71,6 @@ diskfs_S_io_write (struct protid *cred, *amt = datalen; err = _diskfs_rdwr_internal (np, data, off, amt, 1, 0); - if (*amt) - /* If we wrote any, just return a short write count with no error; - the next write attempt will hit the error again and diagnose it. */ - err = 0; if (!err && offset == -1) cred->po->filepointer += *amt; -- cgit v1.2.3