summaryrefslogtreecommitdiffstats
path: root/sys/geom
Commit message (Collapse)AuthorAgeFilesLines
* Retire the DIOCGMBR ioctl before anybody starts to use it.phk2003-04-031-5/+0
|
* Remove all references to BIO_SETATTR. We will not be using it.phk2003-04-037-30/+0
|
* Update the initializer for GEOM_MBREXT, I overlooked it previously.phk2003-04-031-3/+2
|
* Add #define for DOSPTYP_PMBR, and use it.phk2003-04-031-1/+1
|
* #include <sys/endian.h> as needed.phk2003-04-032-0/+2
|
* Remove geom_enc.c, a superset of these functions are now available inphk2003-04-032-134/+0
| | | | <sys/endian.h>
* Use <sys/endian.h> instead of geom_enc.c for endianess-agnostification.phk2003-04-035-116/+119
|
* Use sys/endian.h instead of geom_enc.c for endian-agnostfication.phk2003-04-032-17/+19
|
* Make sure we don't ignore error codes.phk2003-04-031-32/+24
|
* Add handling for cancelled events in the g_call_me() methods.phk2003-04-028-14/+43
|
* Change events to have an array of "void *" references, and give thephk2003-04-0211-98/+90
| | | | | | | | | | | event posting functions varargs to fill these. Attribute g_call_me() to appropriate g_geom's where necessary. Add a flag argument to g_call_me() methods which will be used to signal cancellation of events in the future. This commit should be a no-op.
* Only orphan things if the open/close actually succeeded.phk2003-04-021-11/+10
|
* Properly handle races between open/close and orphan.phk2003-04-021-10/+34
| | | | | | | KASSERT the race between close and strategy, it is an error in the upper echelons if this happens, Add XXX: comment explaining why the ioctl/orphan race is not closed.
* Include <geom/geom_disk.h> not <sys/disk.h>phk2003-04-011-1/+1
|
* Use bioq_flush() to drain a bio queue with a specific error code.phk2003-04-011-0/+1
| | | | | | | | Retain the mistake of not updating the devstat API for now. Spell bioq_disksort() consistently with the remaining bioq_*(). #include <geom/geom_disk.h> where this is more appropriate.
* Start to split the GEOM/diskdriver specific bits into geom/geom_disk.hphk2003-04-011-0/+93
|
* Remove the old config interface, the new OAM is sufficiently functionalphk2003-04-012-138/+0
| | | | now.
* Remove the old config interface now that the new OAM is functional.phk2003-04-011-153/+0
|
* Remove some debugging in the new OAM[*] and add a debug flag for otherphk2003-03-312-5/+3
| | | | | | | | | parts of it. [*] I've been asked what "OAM" means: It's an acronym used in the telecom industry, "Operations And Maintenance", and there it covers anything from a single unlabeled led on the frontpanel the the full nightmare of CMIP for SS7.
* Fix a bug in the ENOMEM pacing code which probably made it panic systemsphk2003-03-291-4/+4
| | | | after a lot of ENOMEM errors.
* Add create_geom and destroy_geom methods.phk2003-03-291-0/+159
|
* Run a revision on the OAM api.phk2003-03-274-87/+304
| | | | | | | Use prefix gctl_ systematically. Add flag with access perms for each argument. Add ro/rw versions of argument building functions. General cleanup.
* Check return value of g_call_me()phk2003-03-271-4/+5
|
* g_class_by_name() was unused too.phk2003-03-251-13/+0
|
* Remove unuse g_insert_geom().phk2003-03-252-39/+0
|
* Forward compatibility: NULL check the passed in meta argument.phk2003-03-251-1/+1
|
* Premptively change initializations of struct g_class to use C99phk2003-03-2413-37/+28
| | | | | sparse struct initializations before we extend the struct with new OAM related member functions.
* Turn /dev/geom.ctl from a GEOM class into a plain character device driverphk2003-03-243-94/+19
| | | | instead, it will never see a disk-I/O transaction, so this is a lot simpler.
* Save a lock: Grab the stall_events SX lock exclusively so it also serializephk2003-03-241-2/+2
| | | | OAM reqests.
* Introduce g_cancel_events() and use it a couple of places where it makesphk2003-03-233-0/+26
| | | | sense.
* Introduce an SX lock which allows us to stall event processingphk2003-03-232-0/+21
| | | | during OAM operations.
* I forgot the evil ioctl census scripts: #include <geom/geom_ctl.h>phk2003-03-231-0/+1
|
* Marshalling stuff for OAM API.phk2003-03-232-0/+187
|
* A note about which #include files may be used where.phk2003-03-231-0/+22
|
* Start leaking the AOM api into the tree.phk2003-03-232-0/+149
|
* Mitigate deadlock situation pending a more complete solution.phk2003-03-212-2/+7
|
* Retire the GEOM private statistics code and use devstat instead.phk2003-03-187-300/+16
|
* Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-1814-14/+0
| | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* #ifdef notyet a bit of code which needs not yet committed refcounting tophk2003-03-161-0/+2
| | | | work correctly.
* Use devstat_{start,end}_transaction_bio().phk2003-03-151-10/+3
| | | | Remember to set bio_resid correctly first.
* If we run out of consumers while orphaning them, and the provider's geomphk2003-03-101-0/+5
| | | | | | is withering, destroy the provider when done. This was exposed by the recent change to geom_dev's orphaning logic.
* Fix yet another fallout of our M_* song and dance.phk2003-03-101-1/+1
|
* Remove unneeded #include of geom_stats.hphk2003-03-092-2/+0
|
* Stamp out Danglish.phk2003-03-091-1/+1
|
* Don't use statistics counters to detect outstanding I/O.phk2003-03-091-1/+1
|
* Don't abuse the statistics counters for detecting if we have outstandingphk2003-03-091-6/+10
| | | | | I/O requests, instead use the new dedicated fields in the consumer and provider to track this.
* Add u_int nstart, nend counters to consumer and providers so we will notphk2003-03-091-0/+2
| | | | | | | | | have to examine the stats structure to tell if we have outstanding I/O requests. Making them u_int improves the chance of atomic updates to them, but risks roll-over. Since the only interesting property is if they are equal or not, this is not an issue.
* When a DEV class consumer is orphan'ed we need to wait for all thephk2003-03-091-11/+20
| | | | | | | | | | outstanding requests to return before we unravel the mesh. It is very important that the stuff below us plays nice and don't overlook a couple of outstanding bio's, because until they remember the geom event thread is blocked. At an expense in code here this could be made more robust, but I actually _want_ a robust failure in this case so any offending drivers can be fixed.
* Allocate devstat structure with devstat_new_entry().phk2003-03-081-2/+1
|
* Centralize the devstat handling for all GEOM disk device driversphk2003-03-082-18/+30
| | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
OpenPOWER on IntegriCloud