aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_gpt.c
Commit message (Collapse)AuthorAgeFilesLines
* Time has run from the "run GEOM in userland" harness, and the new regressionPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=113432
* Retire the "frontstuff" record keeping, it was no match for thePoul-Henning Kamp2003-04-121-3/+0
| | | | | | | in-band meta-data of BSD labels and a more complex solution will be needed. Notes: svn path=/head/; revision=113390
* Premptively change initializations of struct g_class to use C99Poul-Henning Kamp2003-03-241-3/+2
| | | | | | | | sparse struct initializations before we extend the struct with new OAM related member functions. Notes: svn path=/head/; revision=112552
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Constify the dumpconf() function.Poul-Henning Kamp2002-12-171-1/+1
| | | | Notes: svn path=/head/; revision=107967
* Get rid of g_slice_addslice() and use g_slice_config() instead.Poul-Henning Kamp2002-12-161-9/+6
| | | | | | | Tested with: i386 + src/tools/regression/geom Notes: svn path=/head/; revision=107956
* Fix dumpconf so libdisk can grok its output. We weren't checkingMarcel Moolenaar2002-11-021-2/+6
| | | | | | | if indent was NULL. Consequently we always emitted the XML format. Notes: svn path=/head/; revision=106340
* Now that the sectorsize and mediasize are properties of the provider,Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=105551
* Make the sectorsize a property of providers so we can include it in the XMLPoul-Henning Kamp2002-10-201-0/+1
| | | | | | | | | output. Sponsored by: DARPA & NAI Labs Notes: svn path=/head/; revision=105542
* Style, whitespace and lint fixes.Poul-Henning Kamp2002-09-281-44/+48
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104087
* Add the new g_slice_config() call, which can add/delete/change a slice,Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=104064
* Remove unneeded #include <sys/disklabel.h>Poul-Henning Kamp2002-09-201-1/+0
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103695
* Use 'p' as the partition specifier instead of 's'. We continue to useMarcel Moolenaar2002-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 ... Notes: svn path=/head/; revision=102380
* Improve some on the naming.Poul-Henning Kamp2002-06-091-2/+2
| | | | | | | Submitted by: iedowse Notes: svn path=/head/; revision=98066
* Add compile time asserts for the size of struct gpt_hdr and structMarcel Moolenaar2002-05-301-0/+3
| | | | | | | gpt_ent. Use offsetof() for struct gpt_hdr to exclude padding. Notes: svn path=/head/; revision=97547
* Add one copy of crc32() and crc32_tab[] in libkern, and remove it two otherPoul-Henning Kamp2002-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. Notes: svn path=/head/; revision=97512
* Add support to GEOM for GUID Partition Tables (GPTs). The supportMarcel Moolenaar2002-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. Notes: svn path=/head/; revision=97392