]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Have the GPT probe return a lower priority when the MBR is not a PMBR
authormarcel <marcel@FreeBSD.org>
Thu, 21 Nov 2013 22:02:59 +0000 (22:02 +0000)
committermarcel <marcel@FreeBSD.org>
Thu, 21 Nov 2013 22:02:59 +0000 (22:02 +0000)
commit3ce6c522309d1339bd7d2c960630b23199ff13e3
tree9735d314890f349e6767e9eedfcc82f68579ffb9
parent3eb2c9b8dd1cb275159a8413feae04232f578522
Have the GPT probe return a lower priority when the MBR is not a PMBR
The purpose of the PMBR is to have the disk appear in use to GPT
unaware utilities (like fdisk).  However, if the PMBR has been changed
by a GPT unaware utlity then we must assume that this was deliberate
(as it involved removal of the special slice) and we should not treat
the unmodified GPT-specific sectors as being valid.  By lowering the
probe priority in that case, the MBR scheme will take precedence and
the kernel will end up using the MBR and not the GPT. We will still
use the GPT if the kernel does not support the MBR scheme.
sys/geom/part/g_part_gpt.c