]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r315112, r315196
authoraraujo <araujo@FreeBSD.org>
Wed, 17 May 2017 05:21:03 +0000 (05:21 +0000)
committeraraujo <araujo@FreeBSD.org>
Wed, 17 May 2017 05:21:03 +0000 (05:21 +0000)
commit654221cf4ba7456c568d9e2ea7e42797a8a8ee16
tree17054e972c5250ea8078a2fe747088ba28438cb9
parent53eda0a5c93b875f1ecdaa975670376deca1d71b
MFC r315112, r315196

r315112:
Add the capability to refresh the gpart(8) label without need a reboot.

gpart(8) has functionality to change the label of an GPT partition.
This functionality works like it should, however, after a label change
the /dev/gpt/ entries remain unchanged. glabel(8) status output remains
unchanged. The change only takes effect after a reboot.

PR: 162690
Submitted by: sub.mesa@gmail, Ben RUBSON <ben.rubson@gmail.com>, ae
Reviewed by: allanjude, bapt, bcr
Differential Revision: https://reviews.freebsd.org/D9935

r315196:
After r315112 I broke the tests with eli, instead to pass 0, I should pass
M_NOWAIT to g_media_changed() that will call g_post_event() with this flag.

Reported by: lwhsu, ngie and ae
sbin/geom/class/label/geom_label.c
sbin/geom/class/label/glabel.8
sys/geom/part/g_part.c