diff options
author | Rodrigo Campos | 2014-01-25 20:17:26 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-14 11:00:38 +0100 |
commit | a8d10d1c9d13f3a5366b7ece635c02e356965c2d (patch) | |
tree | 70ee4feee5c024f93d536b0be6c265296356de48 /sys-utils/fallocate.1 | |
parent | scriptreplay: Add --maxdelay option. (diff) | |
download | kernel-qcow2-util-linux-a8d10d1c9d13f3a5366b7ece635c02e356965c2d.tar.gz kernel-qcow2-util-linux-a8d10d1c9d13f3a5366b7ece635c02e356965c2d.tar.xz kernel-qcow2-util-linux-a8d10d1c9d13f3a5366b7ece635c02e356965c2d.zip |
fallocate: Clarify that space can also be deallocated
The functionality is already there, with --punch-hole, but the text was for the
preallocation case only.
Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Diffstat (limited to 'sys-utils/fallocate.1')
-rw-r--r-- | sys-utils/fallocate.1 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys-utils/fallocate.1 b/sys-utils/fallocate.1 index d462cee9c..efa42c1d2 100644 --- a/sys-utils/fallocate.1 +++ b/sys-utils/fallocate.1 @@ -1,7 +1,7 @@ .\" -*- nroff -*- .TH FALLOCATE 1 "September 2011" "util-linux" "User Commands" .SH NAME -fallocate \- preallocate space to a file +fallocate \- preallocate or deallocate space to a file .SH SYNOPSIS .B fallocate .RB [ \-n ] @@ -13,10 +13,11 @@ fallocate \- preallocate space to a file .I filename .SH DESCRIPTION .B fallocate -is used to preallocate blocks to a file. For filesystems which support the -fallocate system call, this is done quickly by allocating blocks and marking -them as uninitialized, requiring no IO to the data blocks. This is much faster -than creating a file by filling it with zeros. +is used to manipulate the allocated disk space for a file, either to deallocate +or preallocate it. For filesystems which support the fallocate system call, +preallocation is done quickly by allocating blocks and marking them as +uninitialized, requiring no IO to the data blocks. This is much faster than +creating a file by filling it with zeros. .PP As of the Linux Kernel v2.6.31, the fallocate system call is supported by the btrfs, ext4, ocfs2, and xfs filesystems. |