summaryrefslogtreecommitdiff
path: root/libdiskfs/io-write.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-05 22:07:37 +0000
committerRoland McGrath <roland@gnu.org>1996-01-05 22:07:37 +0000
commit0b3286544a0db042499db7f474d8a131382617dc (patch)
tree28543652bd4f731dce6bc2a1fb80fb1a44261b5a /libdiskfs/io-write.c
parent5d90d2c13c0f40dfc23601efe8633493d9a8fb78 (diff)
Return errors regardless of *AMT--writes are all or nothing.
Diffstat (limited to 'libdiskfs/io-write.c')
-rw-r--r--libdiskfs/io-write.c4
1 files changed, 0 insertions, 4 deletions
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;