Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Retire the DIOCGMBR ioctl before anybody starts to use it. | phk | 2003-04-03 | 1 | -5/+0 |
| | |||||
* | Remove all references to BIO_SETATTR. We will not be using it. | phk | 2003-04-03 | 7 | -30/+0 |
| | |||||
* | Update the initializer for GEOM_MBREXT, I overlooked it previously. | phk | 2003-04-03 | 1 | -3/+2 |
| | |||||
* | Add #define for DOSPTYP_PMBR, and use it. | phk | 2003-04-03 | 1 | -1/+1 |
| | |||||
* | #include <sys/endian.h> as needed. | phk | 2003-04-03 | 2 | -0/+2 |
| | |||||
* | Remove geom_enc.c, a superset of these functions are now available in | phk | 2003-04-03 | 2 | -134/+0 |
| | | | | <sys/endian.h> | ||||
* | Use <sys/endian.h> instead of geom_enc.c for endianess-agnostification. | phk | 2003-04-03 | 5 | -116/+119 |
| | |||||
* | Use sys/endian.h instead of geom_enc.c for endian-agnostfication. | phk | 2003-04-03 | 2 | -17/+19 |
| | |||||
* | Make sure we don't ignore error codes. | phk | 2003-04-03 | 1 | -32/+24 |
| | |||||
* | Add handling for cancelled events in the g_call_me() methods. | phk | 2003-04-02 | 8 | -14/+43 |
| | |||||
* | Change events to have an array of "void *" references, and give the | phk | 2003-04-02 | 11 | -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. | phk | 2003-04-02 | 1 | -11/+10 |
| | |||||
* | Properly handle races between open/close and orphan. | phk | 2003-04-02 | 1 | -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> | phk | 2003-04-01 | 1 | -1/+1 |
| | |||||
* | Use bioq_flush() to drain a bio queue with a specific error code. | phk | 2003-04-01 | 1 | -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.h | phk | 2003-04-01 | 1 | -0/+93 |
| | |||||
* | Remove the old config interface, the new OAM is sufficiently functional | phk | 2003-04-01 | 2 | -138/+0 |
| | | | | now. | ||||
* | Remove the old config interface now that the new OAM is functional. | phk | 2003-04-01 | 1 | -153/+0 |
| | |||||
* | Remove some debugging in the new OAM[*] and add a debug flag for other | phk | 2003-03-31 | 2 | -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 systems | phk | 2003-03-29 | 1 | -4/+4 |
| | | | | after a lot of ENOMEM errors. | ||||
* | Add create_geom and destroy_geom methods. | phk | 2003-03-29 | 1 | -0/+159 |
| | |||||
* | Run a revision on the OAM api. | phk | 2003-03-27 | 4 | -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() | phk | 2003-03-27 | 1 | -4/+5 |
| | |||||
* | g_class_by_name() was unused too. | phk | 2003-03-25 | 1 | -13/+0 |
| | |||||
* | Remove unuse g_insert_geom(). | phk | 2003-03-25 | 2 | -39/+0 |
| | |||||
* | Forward compatibility: NULL check the passed in meta argument. | phk | 2003-03-25 | 1 | -1/+1 |
| | |||||
* | Premptively change initializations of struct g_class to use C99 | phk | 2003-03-24 | 13 | -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 driver | phk | 2003-03-24 | 3 | -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 serialize | phk | 2003-03-24 | 1 | -2/+2 |
| | | | | OAM reqests. | ||||
* | Introduce g_cancel_events() and use it a couple of places where it makes | phk | 2003-03-23 | 3 | -0/+26 |
| | | | | sense. | ||||
* | Introduce an SX lock which allows us to stall event processing | phk | 2003-03-23 | 2 | -0/+21 |
| | | | | during OAM operations. | ||||
* | I forgot the evil ioctl census scripts: #include <geom/geom_ctl.h> | phk | 2003-03-23 | 1 | -0/+1 |
| | |||||
* | Marshalling stuff for OAM API. | phk | 2003-03-23 | 2 | -0/+187 |
| | |||||
* | A note about which #include files may be used where. | phk | 2003-03-23 | 1 | -0/+22 |
| | |||||
* | Start leaking the AOM api into the tree. | phk | 2003-03-23 | 2 | -0/+149 |
| | |||||
* | Mitigate deadlock situation pending a more complete solution. | phk | 2003-03-21 | 2 | -2/+7 |
| | |||||
* | Retire the GEOM private statistics code and use devstat instead. | phk | 2003-03-18 | 7 | -300/+16 |
| | |||||
* | Including <sys/stdint.h> is (almost?) universally only to be able to use | phk | 2003-03-18 | 14 | -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 to | phk | 2003-03-16 | 1 | -0/+2 |
| | | | | work correctly. | ||||
* | Use devstat_{start,end}_transaction_bio(). | phk | 2003-03-15 | 1 | -10/+3 |
| | | | | Remember to set bio_resid correctly first. | ||||
* | If we run out of consumers while orphaning them, and the provider's geom | phk | 2003-03-10 | 1 | -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. | phk | 2003-03-10 | 1 | -1/+1 |
| | |||||
* | Remove unneeded #include of geom_stats.h | phk | 2003-03-09 | 2 | -2/+0 |
| | |||||
* | Stamp out Danglish. | phk | 2003-03-09 | 1 | -1/+1 |
| | |||||
* | Don't use statistics counters to detect outstanding I/O. | phk | 2003-03-09 | 1 | -1/+1 |
| | |||||
* | Don't abuse the statistics counters for detecting if we have outstanding | phk | 2003-03-09 | 1 | -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 not | phk | 2003-03-09 | 1 | -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 the | phk | 2003-03-09 | 1 | -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(). | phk | 2003-03-08 | 1 | -2/+1 |
| | |||||
* | Centralize the devstat handling for all GEOM disk device drivers | phk | 2003-03-08 | 2 | -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. |