summaryrefslogtreecommitdiffstats
path: root/sys-utils/fallocate.1
diff options
context:
space:
mode:
authorCong Wang2011-11-18 09:51:37 +0100
committerKarel Zak2011-11-23 13:12:48 +0100
commit411fd3c27aed72c50677aaf006ebfa6df39a1cfc (patch)
treeb40cc09d92913b9c8fda2eb1c713e8bbc0177e7c /sys-utils/fallocate.1
parentprlimit: s/amount/number/ (diff)
downloadkernel-qcow2-util-linux-411fd3c27aed72c50677aaf006ebfa6df39a1cfc.tar.gz
kernel-qcow2-util-linux-411fd3c27aed72c50677aaf006ebfa6df39a1cfc.tar.xz
kernel-qcow2-util-linux-411fd3c27aed72c50677aaf006ebfa6df39a1cfc.zip
fallocate: add FALLOC_FL_PUNCH_HOLE support
Recent Linux kernel supports FALLOC_FL_PUNCH_HOLE in fallocate(2). This patch adds FALLOC_FL_PUNCH_HOLE support to fallocate utility, by introducing a new option -p|--punch-hole. [kzak@redhat.com: - fix merge conflict in fallocate.1] Cc: Karel Zak <kzak@redhat.com> Cc: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fallocate.1')
-rw-r--r--sys-utils/fallocate.13
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-utils/fallocate.1 b/sys-utils/fallocate.1
index c0dd483e7..653ebfbe4 100644
--- a/sys-utils/fallocate.1
+++ b/sys-utils/fallocate.1
@@ -5,6 +5,7 @@ fallocate \- preallocate space to a file
.SH SYNOPSIS
.B fallocate
.RB [ \-n ]
+.RB [ \-p ]
.RB [ \-o
.IR offset ]
.B \-l
@@ -31,6 +32,8 @@ same meaning as "KiB") or decimal (10^N) suffixes KB, MB, GB, PB and EB.
.IP "\fB\-n, \-\-keep-size\fP"
Do not modify the apparent length of the file. This may effectively allocate
blocks past EOF, which can be removed with a truncate.
+.IP "\fB\-p, \-\-punch-hole\fP"
+Punch holes in the file, the range should not exceed the length of the file.
.IP "\fB\-o, \-\-offset\fP \fIoffset\fP
Specifies the beginning offset of the allocation, in bytes.
.IP "\fB\-l, \-\-length\fP \fIlength\fP