Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/VOP_ALLOCATE.9
- This file was copied to share/man/man9/VOP_DEALLOCATE.9.
Show All 31 Lines | |||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm VOP_ALLOCATE | .Nm VOP_ALLOCATE | ||||
.Nd allocate storage for a file | .Nd allocate storage for a file | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
.In sys/vnode.h | .In sys/vnode.h | ||||
.Ft int | .Ft int | ||||
.Fn VOP_ALLOCATE "struct vnode *vp" "off_t *offset" "off_t *len" | .Fn VOP_ALLOCATE "struct vnode *vp" "off_t *offset" "off_t *len" "int flags" "struct ucred *cred" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
This call allocates storage for a range of offsets in a file. | This call allocates storage for a range of offsets in a file. | ||||
It is used to implement the | It is used to implement the | ||||
.Xr posix_fallocate | .Xr posix_fallocate | ||||
system call. | system call. | ||||
.Pp | .Pp | ||||
Its arguments are: | Its arguments are: | ||||
.Bl -tag -width offset | .Bl -tag -width offset | ||||
.It Fa vp | .It Fa vp | ||||
The vnode of the file. | The vnode of the file. | ||||
.It Fa offset | .It Fa offset | ||||
The start of the range to allocate storage for in the file. | The start of the range to allocate storage for in the file. | ||||
.It Fa len | .It Fa len | ||||
The length of the range to allocate storage for in the file. | The length of the range to allocate storage for in the file. | ||||
.It Fa flags | |||||
The parameter to control the behavior of this call. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fa offset | .Fa offset | ||||
and | and | ||||
.Fa len | .Fa len | ||||
arguments are updated to reflect the portion of the range that | arguments are updated to reflect the portion of the range that | ||||
still needs to be allocated on return. | still needs to be allocated on return. | ||||
Show All 22 Lines |