summaryrefslogtreecommitdiffstats
path: root/disk-utils/sfdisk.c
diff options
context:
space:
mode:
authorKarel Zak2015-01-20 14:10:08 +0100
committerKarel Zak2015-01-20 14:20:47 +0100
commitce9f568c25cc444a8796c599f2539864ab666d5f (patch)
tree541e928dd4c1d3e5a05e3decacbfde90cebde21a /disk-utils/sfdisk.c
parentlibfdisk: (docs) fix typo (diff)
downloadkernel-qcow2-util-linux-ce9f568c25cc444a8796c599f2539864ab666d5f.tar.gz
kernel-qcow2-util-linux-ce9f568c25cc444a8796c599f2539864ab666d5f.tar.xz
kernel-qcow2-util-linux-ce9f568c25cc444a8796c599f2539864ab666d5f.zip
libfdisk: accept Start offset in {B,M,G..}iB in sfdisk scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/sfdisk.c')
-rw-r--r--disk-utils/sfdisk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c
index 86c8b669f..4142181d3 100644
--- a/disk-utils/sfdisk.c
+++ b/disk-utils/sfdisk.c
@@ -946,8 +946,9 @@ static void command_fdisk_help(void)
fputs(_(" <start>, <size>, <typy>, <bootable>\n"), stdout);
fputc('\n', stdout);
- fputs(_(" <start> begin of the partition in sectors. The default is the first\n"
- " free space.\n"), stdout);
+ fputs(_(" <start> begin of the partition in sectors or bytes if specified\n"
+ " in format <number>{K,M,G,T,P,E,Z,Y}. The default is\n"
+ " the first free space.\n"), stdout);
fputc('\n', stdout);
fputs(_(" <size> size of the partition in sectors if specified in format\n"