summaryrefslogtreecommitdiffstats
path: root/sys-utils/fallocate.1
diff options
context:
space:
mode:
authorJ William Piggott2015-01-20 02:11:52 +0100
committerJ William Piggott2015-01-21 00:15:30 +0100
commitb06c1ca6f8708e541d102843ed9b9bd38ce207cd (patch)
tree29c49ad44541dd7f3b67f9c744b9a9b625b675ae /sys-utils/fallocate.1
parentlibfdisk: accept Start offset in {B,M,G..}iB in sfdisk scripts (diff)
downloadkernel-qcow2-util-linux-b06c1ca6f8708e541d102843ed9b9bd38ce207cd.tar.gz
kernel-qcow2-util-linux-b06c1ca6f8708e541d102843ed9b9bd38ce207cd.tar.xz
kernel-qcow2-util-linux-b06c1ca6f8708e541d102843ed9b9bd38ce207cd.zip
docs: restore minus symbols in long opts
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/fallocate.1')
-rw-r--r--sys-utils/fallocate.122
1 files changed, 11 insertions, 11 deletions
diff --git a/sys-utils/fallocate.1 b/sys-utils/fallocate.1
index d166ad857..dd9f293db 100644
--- a/sys-utils/fallocate.1
+++ b/sys-utils/fallocate.1
@@ -37,10 +37,10 @@ MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is
optional, e.g., "K" has the same meaning as "KiB") or the suffixes
KB (=1000), MB (=1000*1000), and so on for GB, TB, PB, EB, ZB and YB.
.PP
-The options \fB\-\-collapse-range\fP, \fB\-\-dig-holes\fP, \fB\-\-punch-hole\fP and
-\fB\-\-zero-range\fP are mutually exclusive.
+The options \fB\-\-collapse\-range\fP, \fB\-\-dig\-holes\fP, \fB\-\-punch\-hole\fP and
+\fB\-\-zero\-range\fP are mutually exclusive.
.TP
-.BR \-c , " \-\-collapse-range"
+.BR \-c , " \-\-collapse\-range"
Removes a byte range from a file, without leaving a hole. The byte range
to be collapsed starts at \fIoffset\fP and continues
for \fIlength\fR bytes. At the completion of the operation, the contents of
@@ -50,36 +50,36 @@ location \fIoffset\fR, and the file will be \fIlength\fR bytes smaller. The opt
.sp
Available since Linux 3.15 for ext4 (only for extent-based files) and XFS.
.TP
-.BR \-d , " \-\-dig-holes"
+.BR \-d , " \-\-dig\-holes"
Detect and dig holes. This makes the file sparse in-place, without using extra
disk space. The minimum size of the hole depends on filesystem I/O block size
-(usually 4096 bytes). Also, when using this option, \fB\-\-keep-size\fP is
+(usually 4096 bytes). Also, when using this option, \fB\-\-keep\-size\fP is
implied. If no range is specified by \fB\-\-offset\fP and \fB\-\-length\fP,
then the entire file is analyzed for holes.
.sp
You can think of this option as doing a "\fBcp --sparse\fP" and then renaming
the destination file to the original, without the need for extra disk space.
.sp
-See \fB\-\-punch-hole\fP for a list of supported filesystems.
+See \fB\-\-punch\-hole\fP for a list of supported filesystems.
.TP
.BR \-l , " \-\-length " \fIlength
Specifies the length of the range, in bytes.
.TP
-.BR \-n , " \-\-keep-size"
+.BR \-n , " \-\-keep\-size"
Do not modify the apparent length of the file. This may effectively allocate
blocks past EOF, which can be removed with a truncate.
.TP
.BR \-o , " \-\-offset " \fIoffset
Specifies the beginning offset of the range, in bytes.
.TP
-.BR \-p , " \-\-punch-hole"
+.BR \-p , " \-\-punch\-hole"
Deallocates space (i.e., creates a hole) in the byte range starting at
\fIoffset\fP and continuing for \fIlength\fR bytes. Within the
specified range, partial filesystem blocks are zeroed, and whole
filesystem blocks are removed from the file. After a successful
call, subsequent reads from this range will return zeroes. This option
-may not be specified at the same time as the \fB\-\-zero-range\fP option.
-Also, when using this option, \fB\-\-keep-size\fP is implied.
+may not be specified at the same time as the \fB\-\-zero\-range\fP option.
+Also, when using this option, \fB\-\-keep\-size\fP is implied.
.sp
Supported for XFS (since Linux 2.6.38), ext4 (since Linux 3.0),
Btrfs (since Linux 3.7) and tmpfs (since Linux 3.5).
@@ -87,7 +87,7 @@ Btrfs (since Linux 3.7) and tmpfs (since Linux 3.5).
.BR \-v , " \-\-verbose"
Enable verbose mode.
.TP
-.BR \-z , " \-\-zero-range"
+.BR \-z , " \-\-zero\-range"
Zeroes space in the byte range starting at \fIoffset\fP and
continuing for \fIlength\fR bytes. Within the specified range, blocks are
preallocated for the regions that span the holes in the file. After