From 8980b4bc0e0964f3f84625f36ff46df354ec85f2 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 14 Sep 2013 02:28:04 +0000 Subject: Correct the handling of I/O of >=2^32 bytes and the ktracing there of by using size_t/ssize_t instead of int/u_int to handle I/O lengths in uiomove(), vn_fsizechk(), and ktrgenio(). Eliminate the always-zero 'error' argument to ktrgenio() at the same time. --- sys/ufs/ext2fs/ext2fs_readwrite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/ufs/ext2fs/ext2fs_readwrite.c') diff --git a/sys/ufs/ext2fs/ext2fs_readwrite.c b/sys/ufs/ext2fs/ext2fs_readwrite.c index fe05a011116..60d1dea1509 100644 --- a/sys/ufs/ext2fs/ext2fs_readwrite.c +++ b/sys/ufs/ext2fs/ext2fs_readwrite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_readwrite.c,v 1.25 2013/06/11 16:42:18 deraadt Exp $ */ +/* $OpenBSD: ext2fs_readwrite.c,v 1.26 2013/09/14 02:28:03 guenther Exp $ */ /* $NetBSD: ext2fs_readwrite.c,v 1.16 2001/02/27 04:37:47 chs Exp $ */ /*- @@ -164,7 +164,8 @@ ext2fs_write(void *v) struct buf *bp; int32_t lbn; off_t osize; - int blkoffset, error, flags, ioflag, resid, size, xfersize, overrun; + int blkoffset, error, flags, ioflag, size, xfersize; + ssize_t resid, overrun; ioflag = ap->a_ioflag; uio = ap->a_uio; -- cgit v1.2.3