Date: Sun, 20 Nov 2011 13:28:43 GMT From: Jason Edwards <sub.mesa@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/162690: gpart label changes only take effect after a reboot Message-ID: <201111201328.pAKDShM4050698@red.freebsd.org> Resent-Message-ID: <201111201330.pAKDUG5a015998@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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@zfsguru ~]# glabel status Name Status Components iso9660/ZFSGURU-LIVECD N/A cd0 gpt/testdisk1 N/A ada0p2 [root@zfsguru ~]# gpart list ada0 | grep label label: (null) label: testdisk1 [root@zfsguru ~]# gpart modify -i 1 -l "bootlabel" ada0 ada0p1 modified [root@zfsguru ~]# gpart list ada0 | grep label label: bootlabel label: testdisk1 [root@zfsguru ~]# glabel status Name Status Components iso9660/ZFSGURU-LIVECD N/A cd0 gpt/testdisk1 N/A ada0p2 [root@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111201328.pAKDShM4050698>