]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r351797: (Optional) Allow more nesting of GEOM partitioning schemes
authorKyle Evans <kevans@FreeBSD.org>
Mon, 9 Sep 2019 17:43:44 +0000 (17:43 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 9 Sep 2019 17:43:44 +0000 (17:43 +0000)
commit8a6f2e05813f70f152f0f562205e8829e7a894bf
tree8e4b474e81d419835f1fcaf35b5cd1421fc1fd54
parent6b0cb559495b14183206a78d9268e5222541528c
MFC r351797: (Optional) Allow more nesting of GEOM partitioning schemes

GEOM is supposed to be topology-agnostic, but the GPT and BSD partition code
has arbitrary restrictions on nesting that are annoying in cases such as
running VMs on raw partitions (since the VM's partitioning scheme is not
visible to the host).

This patch adds sysctls to disable the restrictions except in the case of
BSD label (and similar) partitions with offset 0 (where we need to avoid
recursively recognizing the label).
lib/geom/part/gpart.8
sys/geom/part/g_part.c
sys/geom/part/g_part_gpt.c