Date: Tue, 28 May 2002 02:04:49 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf NOTES files options src/sys/geom geom_gpt.c geom_mbr.c src/sys/sys gpt.h Message-ID: <200205280904.g4S94nu58457@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2002/05/28 02:04:48 PDT
Modified files:
sys/conf NOTES files options
sys/geom geom_mbr.c
Added files:
sys/geom geom_gpt.c
sys/sys gpt.h
Log:
Add support to GEOM for GUID Partition Tables (GPTs). The support
is currently conditional on both the GEOM and GEOM_GPT options to
avoid getting GPT by default and having the MBR and GPT classes
clash.
The correct behaviour of the MBR class would be to back-off (reject)
a MBR if it's a Protective MBR (a MBR with a single partition of type
0xEE that spans the whole disk (as far as the MBR is concerned).
The correct behaviour if the GPT class would be to back-off (reject)
a GPT if there's a MBR that's not a Protective MBR.
At this stage it's inconvenient to destroy a good MBR when working
with GPTs that it's more convenient to have the MBR class back-off
when it detects the GPT signature on disk and have the GPT class
ignore the MBR.
In sys/gpt.h UUIDs (GUIDs) for the following FreeBSD partitions
have been defined:
GPT_ENT_TYPE_FREEBSD
FreeBSD slice with disklabel. This is the equivalent of
the well-known FreeBSD MBR partition type.
GPT_ENT_TYPE_FREEBSD_{SWAP|UFS|UFS2|VINUM}
FreeBSD partitions in the context of disklabel. This is
speculating on the idea to use the GPT to hold partitions
instead if slices and removing the fixed (and low) limits
we have on the number of partitions.
This commit lacks a GPT image for the regression suite.
Revision Changes Path
1.1034 +1 -0 src/sys/conf/NOTES
1.638 +1 -0 src/sys/conf/files
1.319 +2 -0 src/sys/conf/options
1.1 +314 -0 src/sys/geom/geom_gpt.c (new)
1.10 +17 -0 src/sys/geom/geom_mbr.c
1.1 +78 -0 src/sys/sys/gpt.h (new)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205280904.g4S94nu58457>
