From nobody Mon Dec 05 23:39:04 2022 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NR0Pd4j40z4jwRZ for ; Mon, 5 Dec 2022 23:39:17 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NR0Pd2Jvnz45NH; Mon, 5 Dec 2022 23:39:17 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ua1-f53.google.com with SMTP id v21so4457630uam.1; Mon, 05 Dec 2022 15:39:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PDFZR7sLZCemELZIX2ZY7KM3RQ3s5JmMo+0PWUs3nkM=; b=JzjFxPq0ymQsO7fE9cPnpVe5VOA9RvuGQiFUUFIyC/CprUQlaEyh2SkAVaLyx7tnqa /5hd14WlzFnCEHHUqc5IgdrE1J2axpg89gWlI7Y79qQRCWAIN73YUoX/sX/G88h+ecNh X4idf1iFYAv3o5wNrENv4s6rbUs2+6OujzdwPb89gir01ICM3W9F+zrb0d+8aRdESXFi DC9IMsfjN3ItyagBAJDr4b5D2OsrtIQfH3E+prsBajb+wk3WDPZWRzjAbL0lHSZW6wEB 2CWHXRp34rNsJ0Kk/d96xDdnF8vXDeLKAKvhs+Ksnyqkv7Z7JvIoIV2zEL299cloofBT 0jgw== X-Gm-Message-State: ANoB5pmHwiZjQcz0SUoaxegl6A3Jngus/6Vns2AvrxkmgE5BbKB8RU8L IPJv9WNaxNoiYF0gQ5p9tiM7P+RRJQdZyZZTcqboFomf X-Google-Smtp-Source: AA0mqf7lsJX5aHWOmdb7bq19luUOYkLFMZC5GN41vngRobx+GhuKs3rk8/I0YW17AuD66pSJVHFy6HMx0V85NIdb0qQ= X-Received: by 2002:ab0:a88:0:b0:419:d115:2773 with SMTP id d8-20020ab00a88000000b00419d1152773mr2016393uak.29.1670283556003; Mon, 05 Dec 2022 15:39:16 -0800 (PST) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Alan Somers Date: Mon, 5 Dec 2022 16:39:04 -0700 Message-ID: Subject: Re: Renaming glabel(8) labels To: Robert Clausecker Cc: Pawel Jakub Dawidek , fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4NR0Pd2Jvnz45NH X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, Dec 5, 2022 at 4:31 PM Robert Clausecker 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.