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: Robert Elz <kre%munnari.OZ.AU@localhost>
To: Jan Schaumann <jschauma%netmeister.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost, 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: Sun, 26 Apr 2026 03:21:27 +0700

     Date:        Sat, 25 Apr 2026 15:02:55 -0400
     From:        Jan Schaumann <jschauma%netmeister.org@localhost>
     Message-ID:  <ae0P30RA6Xe5nL5K%netmeister.org@localhost>
 
   | So in your opinion, a tool silently ignoring a user's
   | request is appropriate here?
 
 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.
 
   | If so, then I think at a minimum the manual page needs
   | to spell out that '-l' is advisory and may silently be
   | ignored,
 
 It isn't.
 
   | yielding a wedge with a different label from the one that was specified.
 
 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.
 
 kre
 
 



Home | Main Index | Thread Index | Old Index