diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-02-21 01:05:12 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-02-21 01:05:12 +0000 |
commit | 526d0bd547574b185147f03c13e2db7abe566a08 (patch) | |
tree | d0d078391c4959fc08545db4ab619daadd9cf1d9 /sys/fs/pseudofs | |
parent | 57a82ba4d95159d3623b0d401cfc3cc8f6357c28 (diff) | |
download | src-526d0bd547574b185147f03c13e2db7abe566a08.tar.gz src-526d0bd547574b185147f03c13e2db7abe566a08.zip |
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
Notes
Notes:
svn path=/head/; revision=231949
Diffstat (limited to 'sys/fs/pseudofs')
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index a81d7aa1dbba..8a9ca6424429 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -589,7 +589,8 @@ pfs_read(struct vop_read_args *va) struct proc *proc; struct sbuf *sb = NULL; int error, locked; - unsigned int buflen, offset, resid; + off_t offset; + ssize_t buflen, resid; PFS_TRACE(("%s", pn->pn_name)); pfs_assert_not_owned(pn); |