kern/162690: gpart label changes only take effect after a reboot

Jason Edwards sub.mesa at gmail.com
Sun Nov 20 13:30:16 UTC 2011


>Number:         162690
>Category:       kern
>Synopsis:       gpart label changes only take effect after a reboot
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 20 13:30:16 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jason Edwards
>Release:        FreeBSD 9.0-RC2
>Organization:
ZFSguru
>Environment:
FreeBSD zfsguru.bsd 9.0-RC2 FreeBSD 9.0-RC2 #0: Fri Nov 18 16:17:10 UTC 2011     root at zfsguru:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
gpart has functionality to change the label of a (GPT) partition. This functionality works like it should, however, after a label change the /dev/gpt/ entries remain unchanged. glabel status output remains unchanged. The change only takes effect after a reboot.

The device was not in use or otherwise 'locked', gpart list shows the new label, but otherwise it appears that the gpart modify -l command does not actually change the device entries, as is expected and desired.
>How-To-Repeat:
[root at zfsguru ~]# gpart show ada0
=>      34  12582845  ada0  GPT  (6.0G)
        34       512     1  freebsd-boot  (256k)
       546      1502        - free -  (751k)
      2048  12576768     2  freebsd-zfs  (6G)
  12578816      4063        - free -  (2M)

[root at zfsguru ~]# glabel status
                  Name  Status  Components
iso9660/ZFSGURU-LIVECD     N/A  cd0
         gpt/testdisk1     N/A  ada0p2

[root at zfsguru ~]# gpart list ada0 | grep label
   label: (null)
   label: testdisk1

[root at zfsguru ~]# gpart modify -i 1 -l "bootlabel" ada0
ada0p1 modified

[root at zfsguru ~]# gpart list ada0 | grep label
   label: bootlabel
   label: testdisk1

[root at zfsguru ~]# glabel status
                  Name  Status  Components
iso9660/ZFSGURU-LIVECD     N/A  cd0
         gpt/testdisk1     N/A  ada0p2

[root at zfsguru ~]# ls -l /dev/gpt/
total 0
crw-r-----  1 root  operator    0,  76 Nov 20 13:19 testdisk1
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list