From e1b7dd6cac3880a96c75785887896f8189d887d2 Mon Sep 17 00:00:00 2001 From: Lukas Czerner Date: Wed, 15 Apr 2020 09:08:12 +0200 Subject: [PATCH] blkdiscard: (man) offset and length must be sector aligned Update blkdiscard manual page. Length and offset values must be aligned to the device sector size. Signed-off-by: Lukas Czerner Reported-by: Patrick Oppenlander --- sys-utils/blkdiscard.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-utils/blkdiscard.8 b/sys-utils/blkdiscard.8 index 1f3a32be9f..b9d9e7f34d 100644 --- a/sys-utils/blkdiscard.8 +++ b/sys-utils/blkdiscard.8 @@ -38,11 +38,11 @@ KB (=1000), MB (=1000*1000), and so on for GB, TB, PB, EB, ZB and YB. .TP .BR \-o , " \-\-offset \fIoffset" Byte offset into the device from which to start discarding. The provided value -will be aligned to the device sector size. The default value is zero. +must be aligned to the device sector size. The default value is zero. .TP .BR \-l , " \-\-length \fIlength" The number of bytes to discard (counting from the starting point). The provided value -will be aligned to the device sector size. If the specified value extends past +must be aligned to the device sector size. If the specified value extends past the end of the device, .B blkdiscard will stop at the device size boundary. The default value extends to the end -- 2.47.2