diff options
author | Toomas Soome <tsoome@me.com> | 2018-08-28 14:14:19 +0300 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2018-08-29 03:32:43 +0000 |
commit | b982c112ede0da29fbc4152cdc6690d85ddf7207 (patch) | |
tree | af8b7e5f6e31e6c1ab3f2840da8c3836551a907e /usr/src | |
parent | 570479901769888c6a35dcd8d94242a926d0bd87 (diff) | |
download | illumos-joyent-b982c112ede0da29fbc4152cdc6690d85ddf7207.tar.gz |
9775 format: number of sectors is reported one less in case of GPT
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/format/menu_command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/format/menu_command.c b/usr/src/cmd/format/menu_command.c index aff9d39ce8..bc441b0e86 100644 --- a/usr/src/cmd/format/menu_command.c +++ b/usr/src/cmd/format/menu_command.c @@ -1554,9 +1554,9 @@ c_label() */ if (expert_mode) { #if defined(_SUNOS_VTOC_8) - int i; + int i; #endif - int choice; + int choice; u_ioparam_t ioparam; struct extvtoc vtoc; struct dk_label label; @@ -2086,7 +2086,7 @@ c_verify_efi() fmt_print("\n"); fmt_print("bytes/sector = %d\n", cur_blksz); - fmt_print("sectors = %llu\n", cur_parts->etoc->efi_last_lba); + fmt_print("sectors = %llu\n", cur_parts->etoc->efi_last_lba + 1); fmt_print("accessible sectors = %llu\n", cur_parts->etoc->efi_last_u_lba); |