Bug 204737 - gpart displays "1" in case of empty gpt label
Summary: gpart displays "1" in case of empty gpt label
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-22 12:13 UTC by Anton Saietskii
Modified: 2015-11-24 07:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Saietskii 2015-11-22 12:13:35 UTC
root@cs0:~# mdconfig -a -t swap -s 2g
md0
root@cs0:~# gpart create -s gpt md0
md0 created
root@cs0:~# gpart add -t freebsd-swap -s 1g md0
md0p1 added
root@cs0:~# gpart add -t freebsd-swap -l LABELtest md0
md0p2 added
root@cs0:~# gpart show md0
=>     34  4194237  md0  GPT  (2.0G)
       34  2097152    1  freebsd-swap  (1.0G)
  2097186  2097085    2  freebsd-swap  (1.0G)

root@cs0:~# gpart show -l md0
=>     34  4194237  md0  GPT  (2.0G)
       34  2097152    1  1  (1.0G)
  2097186  2097085    2  LABELtest  (1.0G)

root@cs0:~#
Comment 1 Andrey V. Elsukov freebsd_committer freebsd_triage 2015-11-24 07:51:27 UTC
This is already fixed in stable/10 with r286819.