summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorKarel Zak2018-09-12 13:18:08 +0200
committerKarel Zak2018-09-12 13:26:18 +0200
commite4386c8cc0f7f2cfb09781d963b353310a3cd93a (patch)
treee91a483ea75563bc4bd3a2b9faaceefec3fafac0 /disk-utils
parentsfdisk: document script GPT headers (diff)
downloadkernel-qcow2-util-linux-e4386c8cc0f7f2cfb09781d963b353310a3cd93a.tar.gz
kernel-qcow2-util-linux-e4386c8cc0f7f2cfb09781d963b353310a3cd93a.tar.xz
kernel-qcow2-util-linux-e4386c8cc0f7f2cfb09781d963b353310a3cd93a.zip
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: <size>" in libfdisk scripts. Addresses: https://github.com/karelzak/util-linux/issues/688 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/sfdisk.85
1 files changed, 5 insertions, 0 deletions
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