diff options
| author | Karel Zak <kzak@redhat.com> | 2020-03-03 16:22:10 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2020-03-03 16:22:10 +0100 |
| commit | e441601563d8d259653f0d6e517d4db42cbd9d4b (patch) | |
| tree | 774fb943c63d71ba369d20ba4b1d1989556e6d0e /disk-utils/sfdisk.c | |
| parent | 11b916cdabd9f57a4cddf10fd743af2165930dcd (diff) | |
| parent | 006607abb5c0bc40f1f94da94abb14f0668d8205 (diff) | |
| download | util-linux-e441601563d8d259653f0d6e517d4db42cbd9d4b.tar.gz | |
Merge branch 'topic/fdisk'
Diffstat (limited to 'disk-utils/sfdisk.c')
| -rw-r--r-- | disk-utils/sfdisk.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index c77d4942a5..0c14627799 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1153,7 +1153,10 @@ static int command_parttype(struct sfdisk *sf, int argc, char **argv) backup_partition_table(sf, devname); /* parse <type> and apply to PT */ - type = fdisk_label_parse_parttype(lb, typestr); + type = fdisk_label_advparse_parttype(lb, typestr, + FDISK_PARTTYPE_PARSE_DATA + | FDISK_PARTTYPE_PARSE_ALIAS + | FDISK_PARTTYPE_PARSE_SHORTCUT); if (!type) errx(EXIT_FAILURE, _("failed to parse %s partition type '%s'"), fdisk_label_get_name(lb), typestr); @@ -1468,7 +1471,7 @@ static void command_fdisk_help(void) fputc('\n', stdout); fputs(_(" <type> The partition type. Default is a Linux data partition.\n"), stdout); - fputs(_(" MBR: hex or L,S,E,X,U,R,V shortcuts.\n"), stdout); + fputs(_(" MBR: hex or L,S,Ex,X,U,R,V shortcuts.\n"), stdout); fputs(_(" GPT: UUID or L,S,H,U,R,V shortcuts.\n"), stdout); fputc('\n', stdout); |
