Re: Renaming glabel(8) labels

From: Alan Somers <asomers_at_freebsd.org>
Date: Mon, 05 Dec 2022 23:39:04 UTC
On Mon, Dec 5, 2022 at 4:31 PM Robert Clausecker <fuz@fuz.su> wrote:
>
> Hi Pawel,
>
> I've recently had the use case of changing the glabel(8) label of
> a disk.  I noticed that there is no supported way to do that.  What
> worked is destroying and then recreating the label, though that
> requires first removing all consumers of the label.  It's also
> rather scary as there is no documentation on whether destroying the
> label and then recreating it would work.
>
> Is there a better way to change a glabel(8) label?  If not, could
> you implement a command to do so?
>
> Thank you for your help.
>
> Yours,
> Robert Clausecker
>
> --
> ()  ascii ribbon campaign - for an 8-bit clean world
> /\  - against html email  - against proprietary attachments

+1.  I've wanted to do this too.  And also I've needed to rename
gmultipath labels, which also requires destroying and recreating.