]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r231949:
authorkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Mar 2012 11:26:54 +0000 (11:26 +0000)
committerkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Mar 2012 11:26:54 +0000 (11:26 +0000)
commit611d760c04e16af6dd52390d3d83337b965fa793
tree6d55fd112c2a3e6bafbb706cf3aee3895faf11a0
parent4f1e09e2d012aee92aa2836439f1307fd3eda46c
MFC r231949:
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.

MFC r232493:
Remove unneeded cast to u_int. The values as small enough to fit into
int, beside the use of MIN macro which performs type promotions.

MFC r232494:
Instead of incomplete handling of read(2)/write(2) return values that
does not fit into registers, declare that we do not support this case
using CTASSERT(), and remove endianess-unsafe code to split return value
into td_retval.

While there, change the style of the sysctl debug.iosize_max_clamp
definition.

MFC r232495:
pipe_read(): change the type of size to int, and remove signed clamp.
pipe_write(): change the type of desiredsize back to int, its value fits.

git-svn-id: svn://svn.freebsd.org/base/stable/9@233353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
33 files changed:
sys/cddl/compat/opensolaris/sys/vnode.h
sys/compat/ndis/subr_ndis.c
sys/fs/cd9660/cd9660_vnops.c
sys/fs/devfs/devfs_vnops.c
sys/fs/ext2fs/ext2_lookup.c
sys/fs/msdosfs/msdosfs_vnops.c
sys/fs/nfsclient/nfs_clbio.c
sys/fs/nfsclient/nfs_clvnops.c
sys/fs/nfsserver/nfs_nfsdstate.c
sys/fs/pseudofs/pseudofs_vnops.c
sys/fs/udf/udf_vnops.c
sys/kern/kern_ctf.c
sys/kern/kern_gzio.c
sys/kern/kern_ktrace.c
sys/kern/kern_linker.c
sys/kern/link_elf.c
sys/kern/link_elf_obj.c
sys/kern/subr_uio.c
sys/kern/sys_generic.c
sys/kern/sys_pipe.c
sys/kern/tty_ttydisc.c
sys/kern/uipc_mbuf.c
sys/kern/uipc_socket.c
sys/kern/uipc_syscalls.c
sys/kern/vfs_extattr.c
sys/kern/vfs_mountroot.c
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/nfsclient/nfs_bio.c
sys/sys/systm.h
sys/sys/vnode.h
sys/ufs/ffs/ffs_vnops.c
sys/ufs/ufs/ufs_lookup.c