summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_gpt.c
Commit message (Collapse)AuthorAgeFilesLines
* Style, whitespace and lint fixes.phk2002-09-281-44/+48
| | | | Sponsored by: DARPA & NAI Labs.
* Add the new g_slice_config() call, which can add/delete/change a slice,phk2002-09-271-0/+2
| | | | | | | | | with support for trying, doing and forcing. This will eventually replace g_slice_addslice() which gets changed from grabbing topology to requing it in this commit as well. Sponsored by: DARPA & NAI Labs.
* Remove unneeded #include <sys/disklabel.h>phk2002-09-201-1/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Use 'p' as the partition specifier instead of 's'. We continue to usemarcel2002-08-241-2/+5
| | | | | | | | | | 's' for compatibility partitions (ie partitions with a BSD disklabel). Partition numbers continue to start with 1. Example /etc/fstab: # Device Mountpoint FStype Options ... /dev/da0p1 /efi msdos rw ... /dev/da0p2 / ufs rw ... /dev/da0p3 none swap sw ...
* Improve some on the naming.phk2002-06-091-2/+2
| | | | Submitted by: iedowse
* Add compile time asserts for the size of struct gpt_hdr and structmarcel2002-05-301-0/+3
| | | | gpt_ent. Use offsetof() for struct gpt_hdr to exclude padding.
* Add one copy of crc32() and crc32_tab[] in libkern, and remove it two otherphk2002-05-291-65/+0
| | | | | | | places. Comment out crc32 related definitions in zlib.h, we don't seem to have the corresponding code in our kernel.
* Add support to GEOM for GUID Partition Tables (GPTs). The supportmarcel2002-05-281-0/+314
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.
OpenPOWER on IntegriCloud