]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 220791,220793,220846,221836,226364:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 16 Nov 2011 18:33:17 +0000 (18:33 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 16 Nov 2011 18:33:17 +0000 (18:33 +0000)
commit3564c35362c51c979adeed5f4b733cc9101d7bfb
treede05820a10141dc0812fe5f7789109840d5fe342
parent797dd191597bc662e5646af63510dbd0e0af793e
MFC 220791,220793,220846,221836,226364:
Add the posix_fallocate(2) syscall.  The default implementation in
vop_stdallocate() is filesystem agnostic and will run as slow as a
read/write loop in userspace; however, it serves to correctly
implement the functionality for filesystems that do not implement a
VOP_ALLOCATE.

Allow VOP_ALLOCATE to be iterative, and have kern_posix_fallocate(9)
drive looping and potentially yielding.

Reviewed by: mdf

git-svn-id: svn://svn.freebsd.org/base/stable/8@227573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
12 files changed:
lib/libc/sys/Makefile.inc
lib/libc/sys/Symbol.map
lib/libc/sys/posix_fallocate.2 [new file with mode: 0644]
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/freebsd32/syscalls.master
sys/kern/syscalls.master
sys/kern/vfs_default.c
sys/kern/vfs_syscalls.c
sys/kern/vnode_if.src
sys/sys/fcntl.h
sys/sys/param.h
sys/sys/vnode.h