]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
g_part_ebr: always create "compat" aliases
authorEd Maste <emaste@FreeBSD.org>
Mon, 27 Feb 2023 19:13:09 +0000 (14:13 -0500)
committerEd Maste <emaste@FreeBSD.org>
Mon, 6 Mar 2023 13:50:33 +0000 (08:50 -0500)
commit1ee4ec78c22d8f50583a0e17cace9ddcb1d99fc0
treeb2f98576257fbdd0610db9ccb4ec5fed6b2f889b
parent44454bad8cab8208785b2d5aa8acc3df31e13b7a
g_part_ebr: always create "compat" aliases

The "canonical" EBR partition names like `ada0s4+00002081` are not
particularly meaningful.  The "compat" aliases share the same namespace
as the parent MBR, resulting in user-friendly names like `ada0s6`.
These names are consistent with the way Linux names EBR partitions.

We previously provided a sysctl kern.features.geom_part_ebr_compat
(enabled by default) to control the "compat" names.  Remove the sysctl
and always create the aliases.

Relnotes: yes
Reviewed by: cem, imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38812

(cherry picked from commit 6c7bc93da699054bb8ead58fdc226e084d929515)
sys/geom/part/g_part_ebr.c