diff options
author | mdf <mdf@FreeBSD.org> | 2011-04-18 16:32:22 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-04-18 16:32:22 +0000 |
commit | 9c9a32d97b41ab9d0cae56c7e428ad6d5cd1302f (patch) | |
tree | 99ab3d40a9311d51c78c3b3e6b880d6ba7d2560c /sys/kern/vnode_if.src | |
parent | 0bbb5b8e1ab919b4d265f1857ccd42679a2cb39c (diff) | |
download | FreeBSD-src-9c9a32d97b41ab9d0cae56c7e428ad6d5cd1302f.zip FreeBSD-src-9c9a32d97b41ab9d0cae56c7e428ad6d5cd1302f.tar.gz |
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.
Note that __FreeBSD_version was already bumped today to 900036 for any
ports which would like to use this function.
Also reserve space in the syscall table for posix_fadvise(2).
Reviewed by: -arch (previous version)
Diffstat (limited to 'sys/kern/vnode_if.src')
-rw-r--r-- | sys/kern/vnode_if.src | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index 304e009..fe838ec 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -608,6 +608,7 @@ vop_vptofh { IN struct fid *fhp; }; + %% vptocnp vp L L L %% vptocnp vpp - U - @@ -618,3 +619,12 @@ vop_vptocnp { INOUT char *buf; INOUT int *buflen; }; + + +%% allocate vp E E U + +vop_allocate { + IN struct vnode *vp; + IN off_t offset; + IN off_t len; +}; |