From 80ae8fe82cdaa69f78dc90fa27bc9e79863de0ea Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 21 Feb 2012 01:05:12 +0000 Subject: Fix found places where uio_resid is truncated to int. Add the sysctl debug.iosize_max_clamp, enabled by default. Setting the sysctl to zero allows to perform the SSIZE_MAX-sized i/o requests from the usermode. Discussed with: bde, das (previous versions) MFC after: 1 month --- sys/fs/udf/udf_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/fs/udf') diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c index b8e39b3..7a99fcb 100644 --- a/sys/fs/udf/udf_vnops.c +++ b/sys/fs/udf/udf_vnops.c @@ -439,8 +439,9 @@ udf_read(struct vop_read_args *ap) uint8_t *data; daddr_t lbn, rablock; off_t diff, fsize; + ssize_t n; int error = 0; - long size, n, on; + long size, on; if (uio->uio_resid == 0) return (0); -- cgit v1.1