Mercurial > illumos > git > illumos-gate
changeset 19256:887609c1e46b
11996 format: modify should not ask for GPT partition 7
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
author | Toomas Soome <tsoome@me.com> |
---|---|
date | Mon, 18 Nov 2019 16:42:05 +0200 |
parents | 731d775ec113 |
children | b05a6e6f622a |
files | usr/src/cmd/format/modify_partition.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/format/modify_partition.c Mon Nov 18 14:25:51 2019 +0200 +++ b/usr/src/cmd/format/modify_partition.c Mon Nov 18 16:42:05 2019 +0200 @@ -564,7 +564,8 @@ reserved = efi_reserved_sectors(map); for (i = 0; i < map->efi_nparts - 1; i++) { - if (i == float_part) + /* GPT partition 7 is whole disk device, minor node "wd" */ + if (i == float_part || i == 7) continue; ioparam.io_bounds.lower = start_lba;