From nobody@FreeBSD.org  Wed Feb  4 17:08:52 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 34D24106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Feb 2009 17:08:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 240BC8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Feb 2009 17:08:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n14H8p1N032248
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 Feb 2009 17:08:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n14H8pRE032247;
	Wed, 4 Feb 2009 17:08:51 GMT
	(envelope-from nobody)
Message-Id: <200902041708.n14H8pRE032247@www.freebsd.org>
Date: Wed, 4 Feb 2009 17:08:51 GMT
From: Tim Judd <tajudd@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: geom_label needs clarification in docs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131370
>Category:       docs
>Synopsis:       glabel(8): geom_label needs clarification in docs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    keramida
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 04 17:10:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Sat Jul 28 21:40:01 UTC 2012
>Originator:     Tim Judd
>Release:        7.1-RELEASE-p2
>Organization:
>Environment:
N/A
>Description:
After trying to alter a ufs label with glabel (and getting Operation not permitted and other nonhelpful errors), I realized that glabel will add/modify labels in the /dev/label/ directory.  I was trying to use glabel to clear a /dev/ufs/ label and it was refusing to do it.

I suggest modifying the g(eom_)label manpage to reflect that to alter a label, you must use the proper utility to make the change, for example:

mkisofs for iso9660
tunefs for ufs
glabel for label

And the rest as needed.  This will clarify that geom_label is only as a method, not a general purpose tool to alter all information.
>How-To-Repeat:
tunefs -L root /dev/ad0s1a        # creates /dev/ufs/root
glabel clear root                 # fails to clear /dev/ufs/root

tunefs -L "" /dev/ad0s1a          # clears /dev/ufs/root
>Fix:
See above, how to repeat


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Fri Feb 6 02:31:24 UTC 2009 
Responsible-Changed-Why:  
I'll handle this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131370 

From: Mark Saad <nonesuch@longcount.org>
To: bug-followup@FreeBSD.org
Cc: tajudd@gmail.com
Subject: Re: docs/131370: glabel(8): geom_label needs clarification in docs
Date: Sat, 28 Jul 2012 17:31:18 -0400

 Hello All
 
 As a Follow up there is another related issues.
 
 On 9.1-PRERELEASE
 
 I have the following mounts
 
 /dev/gpt/rootfs on / (ufs, local, noatime, journaled soft-updates)
 devfs on /dev (devfs, local, multilabel)
 /dev/gpt/var on /var (ufs, local, noatime, journaled soft-updates)
 /dev/gpt/home on /home (ufs, local, noatime, journaled soft-updates)
 
 If I try to reproduce this error I get the following issues.
 
 I wanted to relabel the /dev/gpt/var partition
 
 root@john:/root # tunefs -L "" /dev/da0p4
 tunefs: /dev/da0p4: failed to write superblock
 
 Also setting sysctl kern.geom.debugflags=17
 
 this does not fix or address this issue either.
 
 
 -- 
 mark saad | nonesuch@longcount.org
>Unformatted:
