From nobody@FreeBSD.org  Mon Oct 24 19:41:38 2011
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 D70F3106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2011 19:41:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C7B3B8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2011 19:41:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9OJfcfM040963
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2011 19:41:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p9OJfcoL040961;
	Mon, 24 Oct 2011 19:41:38 GMT
	(envelope-from nobody)
Message-Id: <201110241941.p9OJfcoL040961@red.freebsd.org>
Date: Mon, 24 Oct 2011 19:41:38 GMT
From: Leander <mr-spott@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GEOM: glabel issue
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         161979
>Category:       kern
>Synopsis:       [geom] glabel doesn't update after newfs, and glabel status is flaky
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-geom
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 24 19:50:00 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Oct 24 22:27:29 UTC 2011
>Originator:     Leander
>Release:        FreeBSD 9.0-RC1
>Organization:
Privat
>Environment:
9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
glabel doesn't update unless one does "true > /dev/da1p1" after a i.e.
"newfs -L Storage /dev/da1p1" or gpt modify etc

+

glabel status only sporadically shows labels. some disapear when being
used by i.e. mount  some don't 

P.S. This issue is related to: http://www.freebsd.org/cgi/query-pr.cgi?pr=161752
>How-To-Repeat:
gpart destroy -F da1
gpart create -s GPT da1
gpart add -l 'StoragePart' -t freebsd-ufs da1
newfs -L Storage gpt/Storage

glabel status

true > /dev/da1p1

glabel status

P.S. This issue is related to: http://www.freebsd.org/cgi/query-pr.cgi?pr=161752
>Fix:
true > /dev/da1p1

Must in my opinion be done automatically by the application itself which
does the change to the GEOM.

No offence, but some arguments to implement "true > $DevicePart"
into the affected GEOM apps:
o    Can't expect a regular user to change that if he/she/it uses
     Hot Plug & Play or changes a label through one of the GEOM apps.
o    Nether is it documented in any of the apps relying on GEOM
     [please don't start documenting it - that's not the right way! ;) ]
o    What's the use of a framework if it doesn't provide internal a
     working interface to update relying apps of changes?


P.S. This issue is related to: http://www.freebsd.org/cgi/query-pr.cgi?pr=161752

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Oct 24 22:25:49 UTC 2011 
Responsible-Changed-Why:  
Write a better Synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161979 
>Unformatted:
