summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_sunlabel.c
Commit message (Collapse)AuthorAgeFilesLines
* Include sys/sbuf.h directly.ae2011-07-111-0/+1
| | | | Reviewed by: pjd
* Add some FEATURE macros for various GEOM classes.netchild2011-02-251-0/+3
| | | | | | | | | | | No FreeBSD version bump, the userland application to query the features will be committed last and can serve as an indication of the availablility if needed. Sponsored by: Google Summer of Code 2010 Submitted by: kibab Reviewed by: silence on geom@ during 2 weeks X-MFC after: to be determined in last commit with code from this project
* Don't pass error value pointer to g_read_data(9) at all if we don'tsobomax2005-11-301-1/+1
| | | | | | have any use of it. Suggested by: pjd
* Check for g_read_data(9) errors properly:sobomax2005-11-301-1/+1
| | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk
* Protect against recursive labels creation in simlar way as it is donepjd2005-04-121-6/+46
| | | | | | | | | | in BSD and MBR classes, ie. if provider below us uses the same metadata, don't create labels based on the metadata. This allows to create labels on geoms with rank != 1 without hacks. Tested by: Chris Elsworth <chris@shagged.org> on sparc64 OK'ed by: phk MFC after: 2 weeks
* Tag all geom classes in the tree with a version number.phk2004-08-081-0/+1
|
* Use default method initialization on geoms.phk2004-08-081-1/+1
|
* Remove the absolute count g_access_abs() function since experience hasphk2004-02-121-5/+5
| | | | | | | | | | | | shown that it is not useful. Rename the relative count g_access_rel() function to g_access(), only the name has changed. Change all g_access_rel() calls in our CVS tree to call g_access() instead. Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source code compatibility.
* Use __FBSDID().obrien2003-06-111-2/+2
| | | | Approved by: phk
* Simplify the GEOM OAM api: Drop the request type, and let everythingphk2003-06-011-18/+15
| | | | | | | | hinge on the "verb" parameter which the class gets to interpret as it sees fit. Move the entire request into the kernel and move changed parameters back when done.
* Remove unused variables.phk2003-05-311-7/+4
| | | | | | Rename struct h0h0 to g_hh01 in order to make it unique over files. Found by: FlexeLint
* Remove the G_CLASS_INITIALIZER, we do not need it anymore.phk2003-05-311-1/+0
|
* Style improvement.phk2003-05-021-4/+3
|
* Use g_slice_spoiled() rather than g_std_spoiled().phk2003-05-021-1/+1
|
* Plug some memory-leaks.phk2003-05-011-2/+7
|
* Introduce a g_waitfor_event() function which posts an event and waits forphk2003-04-231-5/+1
| | | | it to be run (or cancelled) and use this instead of home-rolled versions.
* Rename g_call_me() to g_post_event(), and give it a flagphk2003-04-231-9/+7
| | | | argument to determine if we can M_WAITOK in malloc.
* Implement CONFIG_GEOM verbs "write label" and "write bootcode".phk2003-04-231-0/+83
|
* Change the locking so that the _modify function is called with topologyphk2003-04-221-8/+2
| | | | | | | | | held. The only place where we want to not hold topology is when we read (or write) the label to disk: in the case of a disk error with a long recovery time, holding topology would prevent open/close of any disk device.
* We don't need to have a slice->start() function.phk2003-04-221-14/+1
|
* Implement a hotspot for the sunlabel.phk2003-04-211-3/+38
| | | | | | This means that you can no longer trash your opened partitions by writing to the sunlabel through another partition. This is similar to the semantics implemented for BSD labels.
* Update GEOM::SUN to use the decoding functions in geom_sunlabel_enc.cphk2003-04-211-45/+16
| | | | and #defines from sys/sun_disklabel.h.
* 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-1/+0
| | | | in-band meta-data of BSD labels and a more complex solution will be needed.
* Style issue: use do {...} while(0); for multi-exit section.phk2003-04-091-1/+1
|
* Use <sys/endian.h> instead of geom_enc.c for endianess-agnostification.phk2003-04-031-24/+25
|
* 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.
* Move configuration of geom/providers into its own function in preparationphk2003-02-011-36/+65
| | | | for adding on-the-fly config interface.
* Get rid of g_slice_addslice() and use g_slice_config() instead.phk2002-12-161-8/+7
| | | | Tested with: i386 + src/tools/regression/geom
* Constification and some s/int/u_int/ changes.phk2002-12-161-1/+1
|
* Add support for the new libdisk interaction.phk2002-10-281-2/+15
| | | | Sponsored by: DARPA & NAI Labs.
* Now that the sectorsize and mediasize are properties of the provider,phk2002-10-201-12/+4
| | | | | | | | | | | 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-1/+0
| | | | 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 "magicspace". It looks good on paper, it doesn't work in practice.phk2002-09-061-3/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Improve some on the naming.phk2002-06-091-1/+1
| | | | Submitted by: iedowse
* Change the registration of magic spaces so it does its own memory management.phk2002-06-051-2/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Introduce the concept of "magic spaces", and implement them in most ofphk2002-05-211-1/+4
| | | | | | | | | | | | | | | | the relevant classes. Some methods may implement various "magic spaces", this is reserved or magic areas on the disk, set a side for various and sundry purposes. A good example is the BSD disklabel and boot code on i386 which occupies a total of four magic spaces: boot1, the disklabel, the padding behind the disklabel and boot2. The reason we don't simply tell people to write the appropriate stuff on the underlying device is that (some of) the magic spaces might be real-time modifiable. It is for instance possible to change a disklabel while partitions are open, provided the open partitions do not get trampled in the process. Sponsored by: DARPA & NAI Labs.
* Remove the "-class" suffix from classes, they will not be ambiguous.phk2002-05-211-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the startphk2002-04-091-5/+6
| | | | | | of the device magic stuff might occupy. Sponsored by: DARPA & NAI Labs.
* Various stylistic nit picking.phk2002-04-091-6/+6
| | | | Sponsored by: DARPA & NAI Labs.
* Move access and orphan member functions from class to geom.phk2002-04-041-2/+0
| | | | Sponsored by: DARPA & NAI Labs
* Complete an incomplete cut&paste operation.phk2002-03-281-3/+3
|
* Eliminate some thread pointers which do not make sense anymore.phk2002-03-261-3/+3
| | | | | Split private parts of geom.h into geom_int.h. The latter should never be included in class implemtations.
* Cave in to tradition and rename "methods" to "classes".phk2002-03-261-7/+7
|
* Be more systematic about conversion of on-disk formats in a endian/widthphk2002-03-241-32/+19
| | | | | | | | | agnostic way. Collapse the MBR and MBREXT methods into one file and make them endian/width agnostic. Sponsored by: DARPA & NAI Labs.
* Teach GEOM about Sun disklabel formats.phk2002-03-151-0/+209
The detection code in this method is written so that it should work on all architectures which means that you can plug a Sun disk into a i386 now and access the partitions. We still need an endian-agnostic ufs/ffs before this is really interresting, but the main focus was to get sparc64 onto the GEOM trail.
OpenPOWER on IntegriCloud