]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345480, r346013
authorian <ian@FreeBSD.org>
Mon, 22 Apr 2019 15:09:47 +0000 (15:09 +0000)
committerian <ian@FreeBSD.org>
Mon, 22 Apr 2019 15:09:47 +0000 (15:09 +0000)
commit8e24aac33c8047447ec5b05a5c058c6a7818985c
tree47f6df6df60d7803d680577de1c6373f7e3cb876
parent5061b1a7f67b34ee2beccd7345a437a5e74505aa
MFC r345480, r346013

r345480:
Support device-independent labels for geom_flashmap slices.

While geom_flashmap has always supported label names for its slices, it does
so by appending "s.labelname" to the provider device name, meaning you still
have to know the name and unit of the hardware device to use the labels.

These changes add support for device-independent geom_flashmap labels, using
the standard geom_label infrastructure. geom_flashmap now creates a softc
struct attached to its geom, and as it creates slices it stores the label
into an array in the softc. The new geom_label_flashmap uses those labels
when tasting a geom_flashmap provider.

Differential Revision: https://reviews.freebsd.org/D19535

r346013:
Add g_label_flashmap.c to the module, should have been part of r345480.
sys/conf/files
sys/geom/geom_flashmap.c
sys/geom/geom_flashmap.h [new file with mode: 0644]
sys/geom/label/g_label.c
sys/geom/label/g_label.h
sys/geom/label/g_label_flashmap.c [new file with mode: 0644]
sys/modules/geom/geom_label/Makefile