2014-04-12 09:04:38 -04:00
|
|
|
.TH FALLOCATE 1 ubase-VERSION
|
|
|
|
.SH NAME
|
2014-04-12 09:16:20 -04:00
|
|
|
\fBfallocate\fR - Preallocate blocks to a file
|
2014-04-12 09:04:38 -04:00
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBfallocate\fR [\fB-o\fI offset\fR] \fB-l\fR \fIlength file\fR
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBfallocate\fR preallocates blocks to a file. Only certain filesystems
|
|
|
|
support the fallocate system call. This is a very fast operation to allocate
|
|
|
|
uninitialized blocks in a file without doing any IO.
|
2014-04-13 11:50:08 -04:00
|
|
|
As of the Linux kernel v2.6.31, the fallocate system call is supported
|
2014-04-12 09:04:38 -04:00
|
|
|
by the btrfs, ext4, ocfs2, and xfs filesystems.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2014-04-13 11:40:40 -04:00
|
|
|
\fB-o\fR
|
|
|
|
Specifies the beginning offset of the allocation, in bytes.
|
2014-04-12 09:04:38 -04:00
|
|
|
.TP
|
2014-04-13 11:40:40 -04:00
|
|
|
\fB-l\fR
|
|
|
|
Specifies the length of the allocation, in bytes.
|
2014-04-12 09:04:38 -04:00
|
|
|
.SH SEE ALSO
|
|
|
|
fallocate(2)
|