]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fstrim: document kernel return minlen explicitly
authorWang Shilong <wshilong@ddn.com>
Tue, 23 Apr 2019 14:58:28 +0000 (23:58 +0900)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Apr 2019 09:08:23 +0000 (11:08 +0200)
Filesystem will modify @minlen according to its
block size etc, and will return actual unit
to userspace, document it into manpage.

Cc: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
sys-utils/fstrim.8

index f7e7aa9ef6cb57ab21bd5765b47effd1e7cf4656..c6ecca706488a83c41b26f3e1209c782560c43cf 100644 (file)
@@ -76,10 +76,11 @@ the end of the filesystem.
 .IP "\fB\-m, \-\-minimum\fP \fIminimum-size\fP"
 Minimum contiguous free range to discard, in bytes. (This value is internally
 rounded up to a multiple of the filesystem block size.)  Free ranges smaller
-than this will be ignored.  By increasing this value, the fstrim operation
-will complete more quickly for filesystems with badly fragmented freespace,
-although not all blocks will be discarded.  The default value is zero,
-discarding every free block.
+than this will be ignored and fstrim will adjust the minimum if it's smaller than
+the device's minimum, and report that (fstrim_range.minlen) back to userspace.
+By increasing this value, the fstrim operation will complete more quickly for
+filesystems with badly fragmented freespace, although not all blocks will be
+discarded.  The default value is zero, discarding every free block.
 .IP "\fB\-v, \-\-verbose\fP"
 Verbose execution.  With this option
 .B fstrim