summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkaply%us.ibm.com <devnull@localhost>2002-06-24 02:13:20 +0000
committermkaply%us.ibm.com <devnull@localhost>2002-06-24 02:13:20 +0000
commit9622057f87d6e75d2f9d5bdc5f10cfd97bec6af6 (patch)
treedf23439cb2c5061c7012501fd14f914eb6198237
parentbf9e4930b4947c6133ac3a4adcf4221a79bf374e (diff)
downloadnspr-hg-9622057f87d6e75d2f9d5bdc5f10cfd97bec6af6.tar.gz
#150157
r=wtc, a=dbaron OS/2 only - DosWrite is not returning an error when the disk is full. We can tell the write failed if we did a partial write.
-rw-r--r--pr/src/md/os2/os2io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pr/src/md/os2/os2io.c b/pr/src/md/os2/os2io.c
index 12e2f2a2..acccf6a6 100644
--- a/pr/src/md/os2/os2io.c
+++ b/pr/src/md/os2/os2io.c
@@ -253,6 +253,12 @@ _PR_MD_WRITE(PRFileDesc *fd, const void *buf, PRInt32 len)
return -1;
}
+ if (len != bytes) {
+ rv = ERROR_DISK_FULL;
+ _PR_MD_MAP_WRITE_ERROR(rv);
+ return -1;
+ }
+
return bytes;
} /* --- end _PR_MD_WRITE() --- */