NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/60208: 'gpt add' should error if the specified label already exists
The following reply was made to PR bin/60208; it has been noted by GNATS.
From: Jan Schaumann <jschauma%netmeister.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/60208: 'gpt add' should error if the specified label already
exists
Date: Sat, 25 Apr 2026 16:56:10 -0400
Robert Elz via gnats <gnats-admin%NetBSD.org@localhost> wrote:
> No, but nor is it doing that, the label you request is being set
> on the partition in the partition table, just use "gpt show -l" (or -a)
> to see it.
> gpt doesn't create wedges at all, it labels disk like devices.
>
> dkctl creates wedges in the kernel. As Michael said in his reply,
> if a wedge has a duplicate label, the GUID is used instead (by the
> kernel) - the label still exists in the GPT table, it just isn't
> used by the kernel.
Ah, ok, I see.
Still find it confusing, I agree that gpt(8) does what
is says it would, and I can't think of a good way of
resolving the scenario I described.
I'll close this bug.
Thanks,
-Jan
Home |
Main Index |
Thread Index |
Old Index