summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.h
Commit message (Collapse)AuthorAgeFilesLines
* Retire g_io_fail() and let g_io_deliver() take an error argument instead.phk2002-09-301-2/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Introduce g_write_data() function.phk2002-09-301-0/+1
| | | | Sponsored by: DARPA & NAI Labs
* Add missing g_enc_le2().phk2002-09-301-0/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Various no-ops:phk2002-09-271-2/+2
| | | | | | | | | | | Add a __unused. Make the 2byte decoder functions return 16 bits for the benefits of picky lints. No need to grab giant around a tsleep() when we have a timeout. Sponsored by: DARPA & NAI Labs.
* Implement g_call_me() as a way for geom methods to schedule operationsphk2002-09-271-1/+3
| | | | | | | | | | | | | | | | to be performed in the event-thread. To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock), since g_call_me() being called from the UP/DOWN paths will not be able to aquire g_topology_lock. This also means that for now these events are not referenced on any particular consumer/provider/geom. For UP/DOWN path use, this will not become a problem since the access() function will make sure we drain any bio's before we dismantle. Sponsored by: DARPA & NAI Labs.
* Add a couple more of the big/little-endian conversion routines and makephk2002-09-131-6/+9
| | | | | | | | | | | them visible from userland, if need be. I wish that the C language contained this as part of struct definintions, but failing that, I would settle for an agreed upon set of functions for packing/unpacking integers in various sizes from byte-streams which may have unfriendly alignment. This really belongs in <sys/endian.h> I guess.
* Remove "magicspace". It looks good on paper, it doesn't work in practice.phk2002-09-061-31/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Improve some on the naming.phk2002-06-091-7/+7
| | | | Submitted by: iedowse
* Change the registration of magic spaces so it does its own memory management.phk2002-06-051-2/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Introduce the concept of "magic spaces", and implement them in most ofphk2002-05-211-0/+30
| | | | | | | | | | | | | | | | 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.
* Don't grab Giant around malloc(9) and free(9).phk2002-05-201-7/+18
| | | | | | | | Don't grab Giant around wakeup(9). Don't print verbose messages about each device found in geom_dev. Various cleanups. Sponsored by: DARPA & NAI Labs.
* Make specific provisions for the kernel simulator used in the regressionphk2002-04-241-1/+1
| | | | | | tests, other userland programs may need to include <geom/geom.h>. Sponsored by: DARPA & NAI Labs.
* Implement the GEOMGETCONF ioctl which returns vital stats for thephk2002-04-231-0/+4
| | | | | | current device in XML in an sbuf. Sponsored by: DARPA & NAI Labs
* Introduce some serious paranoia to try to catch a memory overwrite problemphk2002-04-231-4/+13
| | | | | | as early as possible. Sponsored by: DARPA & NAI Labs
* Protect against multitple #includes of this file.phk2002-04-221-0/+4
|
* Make kernel dumps work with GEOM.phk2002-04-191-0/+5
| | | | | | | | | | Notice that if the device on which the dump is set is destroyed for any reason, the dump setting is lost. This in particular will happen in the case of spoilage. For instance if you set dump on ad0s1b and open ad0 for writing, ad0s* will be spoilt and the dump setting lost. See geom(4) for more about spoiling. Sponsored by: DARPA & NAI Labs.
* Introduce the convenience function g_getattr() and make it DWIM.phk2002-04-091-0/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Constifixation of attribute argument to g_io_[gs]etattr()phk2002-04-091-2/+2
| | | | Sponsored by: DARPA & NAI Labs
* Centralize EOF handling and improve access controls for bio scheduling.phk2002-04-041-0/+1
| | | | Sponsored by: DARPA & NAI Labs
* Move access and orphan member functions from class to geom.phk2002-04-041-5/+9
| | | | Sponsored by: DARPA & NAI Labs
* Eliminate some thread pointers which do not make sense anymore.phk2002-03-261-45/+4
| | | | | 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-24/+24
|
* Be more systematic about conversion of on-disk formats in a endian/widthphk2002-03-241-0/+7
| | | | | | | | | agnostic way. Collapse the MBR and MBREXT methods into one file and make them endian/width agnostic. Sponsored by: DARPA & NAI Labs.
* Need a different #include for the userland regression test.phk2002-03-171-1/+1
|
* Add a generic and general ioctl pass-through mechanism.phk2002-03-161-1/+7
| | | | It should now be posible to issue ioctls to SCSI CD drives.
* First commit of the GEOM subsystem to make it easier for people tophk2002-03-111-0/+290
test and play with this. This is not yet production quality and should be run only on dedicated test boxes. For people who want to develop transformations for GEOM there exist a set of shims to run geom in userland (ask phk@freebsd.org). Reports of all kinds to: phk@freebsd.org Please include in report: dmesg sysctl debug.geomdot sysctl debug.geomconf Known significant limitations: no kernel dump facility. ioctls severely restricted. Sponsored by: DARPA, NAI Labs
OpenPOWER on IntegriCloud