summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_gpt.c
Commit message (Collapse)AuthorAgeFilesLines
* Time has run from the "run GEOM in userland" harness, and the new regressionphk2003-04-131-9/+0
| | | | | | | test is built to test GEOM as running in the kernel. This commit is basically "unifdef -D_KERNEL" to remove the mainly #include related code to support the userland-harness.
* Retire the "frontstuff" record keeping, it was no match for thephk2003-04-121-3/+0
| | | | in-band meta-data of BSD labels and a more complex solution will be needed.
* Premptively change initializations of struct g_class to use C99phk2003-03-241-3/+2
| | | | | sparse struct initializations before we extend the struct with new OAM related member functions.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Constify the dumpconf() function.phk2002-12-171-1/+1
|
* Get rid of g_slice_addslice() and use g_slice_config() instead.phk2002-12-161-9/+6
| | | | Tested with: i386 + src/tools/regression/geom
* Fix dumpconf so libdisk can grok its output. We weren't checkingmarcel2002-11-021-2/+6
| | | | if indent was NULL. Consequently we always emitted the XML format.
* Now that the sectorsize and mediasize are properties of the provider,phk2002-10-201-2/+2
| | | | | | | | | | | don't take the detour over the I/O path to discover them using getattr(), we can just pick them out directly. Do note though, that for now they are only valid after the first open of the underlying disk device due compatibility with the old disk_create() API. This will change in the future so they will always be valid. Sponsored by: DARPA & NAI Labs.
* Make the sectorsize a property of providers so we can include it in the XMLphk2002-10-201-0/+1
| | | | | | output. Sponsored by: DARPA & NAI Labs
* 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