[Bug 254142] gpart silently truncates the GPT label

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 11 01:56:32 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254142

David Schlachter <fbsd-bugzilla at schlachter.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fbsd-bugzilla at schlachter.ca

--- Comment #1 from David Schlachter <fbsd-bugzilla at schlachter.ca> ---
Partition names (labels) are limited to 36 characters in GPT. Wikipedia has a
nice breakdown of the format of the partition entries where you can see this:
https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_entries_(LBA_2–33)

I tried your example, and inspecting the GPT partition table on-disk with a hex
editor, e.g.

   doas cat /dev/da1 | xxd | less

I can see that the label is 123456789012345678901234567890123456, as displayed
by gpart (first 36 characters of the label you had tried to assign).

The bug here would be that gpart doesn't complain about the label being too
long in `gpart add`.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list