From 7084db77e6f876df2dc7f6ec0c68ba6140de7bb5 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 98c6f36a98..bd3950b1fa 100644 --- a/sys-utils/blkdiscard.8 +++ b/sys-utils/blkdiscard.8 @@ -43,11 +43,11 @@ The force option disables the exclusive access mode. .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.3