Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2021 01:56:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254142] gpart silently truncates the GPT label
Message-ID:  <bug-254142-227-RZg2QC96DT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254142-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

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

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

--- Comment #1 from David Schlachter <fbsd-bugzilla@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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254142-227-RZg2QC96DT>