summaryrefslogtreecommitdiffstats
path: root/sys-utils/fallocate.1
diff options
context:
space:
mode:
authorKarel Zak2018-07-03 13:51:51 +0200
committerKarel Zak2018-07-03 13:51:51 +0200
commit562adaed911db581fe01664c07a27184e27087c3 (patch)
tree14db42c59024edf018e2656f6a2f49d757b7c98b /sys-utils/fallocate.1
parentdocs: update TODO (diff)
downloadkernel-qcow2-util-linux-562adaed911db581fe01664c07a27184e27087c3.tar.gz
kernel-qcow2-util-linux-562adaed911db581fe01664c07a27184e27087c3.tar.xz
kernel-qcow2-util-linux-562adaed911db581fe01664c07a27184e27087c3.zip
fallocate: add man page note about --collapse-range granularity
Reported-by: Radka Skvarilova <rskvaril@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fallocate.1')
-rw-r--r--sys-utils/fallocate.16
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-utils/fallocate.1 b/sys-utils/fallocate.1
index d4821dcd1..fe5072ae8 100644
--- a/sys-utils/fallocate.1
+++ b/sys-utils/fallocate.1
@@ -72,6 +72,12 @@ The option
may not be specified for the collapse-range operation.
.sp
Available since Linux 3.15 for ext4 (only for extent-based files) and XFS.
+.sp
+A filesystem may place limitations on the granularity of the operation, in
+order to ensure efficient implementation. Typically, offset and len must be a
+multiple of the filesystem logical block size, which varies according to the
+filesystem type and configuration. If a filesystem has such a requirement,
+the operation will fail with the error EINVAL if this requirement is violated.
.TP
.BR \-d ", " \-\-dig\-holes
Detect and dig holes.