From nobody@FreeBSD.org  Sat Jan 22 20:56:22 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 EAFE8106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jan 2011 20:56:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DA6A88FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jan 2011 20:56:22 +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 p0MKuMJR020200
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jan 2011 20:56:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p0MKuMFD020199;
	Sat, 22 Jan 2011 20:56:22 GMT
	(envelope-from nobody)
Message-Id: <201101222056.p0MKuMFD020199@red.freebsd.org>
Date: Sat, 22 Jan 2011 20:56:22 GMT
From: "Vladislav V. Prodan" <universite@ukr.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GEOM label does not change when you modify them
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         154226
>Category:       kern
>Synopsis:       [geom] GEOM label does not change when you modify them
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-geom
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 22 21:00:27 UTC 2011
>Closed-Date:    
>Last-Modified:  Wed Apr 27 08:20:11 UTC 2011
>Originator:     Vladislav V. Prodan
>Release:        9.0-CURRENT  amd64
>Organization:
>Environment:
FreeBSD mary-teresa.ZZZ 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun Aug 29 19:00:25 EEST 2010 vlad11@mary-teresa.ZZZ:/usr/obj/usr/src/sys/mary-teresa.24 amd64
>Description:

I want to change the GEOM label, but I can not: (

# ls /dev/gpt
disk6
# sync
# gpart modify -i 1 -l disk5 ad18
ad18p1 modified
# sync
# ls /dev/gpt
disk6
# gpart list ad18
Geom name: ad18
fwheads: 16
fwsectors: 63
last: 1465149134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ad18p1
   Mediasize: 750156339712 (699G)
   Sectorsize: 512
   Mode: r0w0e0
   rawuuid: 562396c8-25ab-11e0-9a58-00e04d7b690c
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: disk5
   length: 750156339712
   offset: 17408
   type: freebsd-zfs
   index: 1
   end: 1465149134
   start: 34
Consumers:
1. Name: ad18
   Mediasize: 750156374016 (699G)
   Sectorsize: 512
   Mode: r0w0e0

>How-To-Repeat:
gpart modify -i 1 -l disk5 ad18
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 23 21:37:29 UTC 2011 
Responsible-Changed-Why:  
Reclassify. 

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

From: "Andrey V. Elsukov" <ae@freebsd.org>
To: bug-followup@FreeBSD.org, universite@ukr.net
Cc:  
Subject: Re: kern/154226: [geom] GEOM label does not change when you modify
 them
Date: Mon, 24 Jan 2011 10:41:17 +0300

 Hello,
 
 It is known problem. GPT labels located in the GPT table and
 when you doing modify of GPT label it does not touch ad18p1
 provider and it will not be retasted. And label changes will
 not be visible for GEOM_LABEL class.
 
 As workaround you can run this command:
 # true > /dev/ad18p1
 
 This does initiate retasting for ad18p1.
 
 -- 
 WBR, Andrey V. Elsukov

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: bug-followup@FreeBSD.org, universite@ukr.net
Cc:  
Subject: Re: kern/154226: [geom] GEOM label does not change when you modify
 them
Date: Wed, 27 Apr 2011 11:53:54 +0400

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig9CB06898715A30274A7C0440
 Content-Type: text/plain; charset=KOI8-R
 Content-Transfer-Encoding: quoted-printable
 
 Hi, Vladislav
 
 can you test this patch?
 http://people.freebsd.org/~ae/gpart_labels.diff
 
 --=20
 WBR, Andrey V. Elsukov
 
 
 --------------enig9CB06898715A30274A7C0440
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (MingW32)
 
 iQEcBAEBAgAGBQJNt8uVAAoJEAHF6gQQyKF6p6oH+wZSM0/r0jG4Q8Hp+sVf+WJX
 hMnCZndDLivDu4moQ3n+SJfJt+u4ZMwdFNId0L6pKBu3ZGVXigKQYNc7BtN4Lfhr
 6W4PjpecSPe8FlksGncPe7bcj1jOhMNzDNWqGEoELgr7uh1cqbZCKi3XjMf4Prpz
 /aGL8ug8rpTnPeBlgpSZ4jIe8WjA/nsiKZXha0+2vlhRGonHCRM2Nu/ktDeO3umv
 rFIVrxHfPyp9+IPP55uKaDh8gJVoMeIk41wuZgGnzrs30oJFeM2O9NjU1FNc7AwX
 iIlZHUkKGGFz3b6lzAD9MIM7PCkhltwsEJAQd+S0SbS3rUQWsYnJjsn1/B7MiYs=
 =j0NE
 -----END PGP SIGNATURE-----
 
 --------------enig9CB06898715A30274A7C0440--
>Unformatted:
