Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/fspacectl.2
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | struct spacectl_range { | ||||
off_t r_len; | off_t r_len; | ||||
}; | }; | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
The operation specified by the | The operation specified by the | ||||
.Fa cmd | .Fa cmd | ||||
argument may be one of: | argument may be one of: | ||||
.Bl -tag -width SPACECTL_DEALLOC | .Bl -tag -width SPACECTL_DEALLOC | ||||
.It Dv SPACECTL_ALLOC | |||||
Back a region in the file specified by the | |||||
.Fa range | |||||
argument within the file system space. | |||||
gbe: ...argument within the file system space. | |||||
Subsequent operations in the region will not fail due to lack of free space in | |||||
the file system. | |||||
This operation is used to implement | |||||
Done Inline Actions...for a non-hole region. gbe: ...for a non-hole region. | |||||
.Xr posix_fallocate 2 . | |||||
Content will remain the same for a non-hole region. | |||||
Holes will be converted to non-hole region with zeroes. | |||||
.It Dv SPACECTL_DEALLOC | .It Dv SPACECTL_DEALLOC | ||||
Zero a region in the file specified by the | Zero a region in the file specified by the | ||||
.Fa range | .Fa range | ||||
argument. | argument. | ||||
If the file system supports hole-punching, | If the file system supports hole-punching, | ||||
file system space deallocation may be performed in the given region. | file system space deallocation may be performed in the given region. | ||||
.El | .El | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |
...argument within the file system space.