From e4386c8cc0f7f2cfb09781d963b353310a3cd93a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 12 Sep 2018 13:18:08 +0200 Subject: libfdisk: accept grain script header The "grain" variable is used to calculate partitions alignment. The default is 1MiB (or minimal I/O size). The libfdisk provides API to overwrite this default, but this feature has been nowhere accessible for end-user. This patch support for "grain: " in libfdisk scripts. Addresses: https://github.com/karelzak/util-linux/issues/688 Signed-off-by: Karel Zak --- disk-utils/sfdisk.8 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'disk-utils') diff --git a/disk-utils/sfdisk.8 b/disk-utils/sfdisk.8 index 4ea7cf363..98b574e45 100644 --- a/disk-utils/sfdisk.8 +++ b/disk-utils/sfdisk.8 @@ -322,6 +322,11 @@ Specify the last usable sector for GPT partitions. .TP .B table-length Specify the maximal number of GPT partitions. +.TP +.B grain +Specify minimal size in bytes used to calculate partitions alignment. The +default is 1MiB and it's strongly recommended to use the default. Do not +modify this variable if you're not sure. .RE .sp Note that it is only possible to use header lines before the first partition -- cgit v1.2.3-55-g7522