]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345480, r346013
authorIan Lepore <ian@FreeBSD.org>
Mon, 22 Apr 2019 00:45:09 +0000 (00:45 +0000)
committerIan Lepore <ian@FreeBSD.org>
Mon, 22 Apr 2019 00:45:09 +0000 (00:45 +0000)
commit194d1dc971e79a4511d093aadf709ca55bb7c6f4
tree17d62d7f2c1201eb3d945850656d48924080a401
parentb90d8d4fb588a84158a9d49426b3e0093ca3457a
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