summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ctl.c
Commit message (Collapse)AuthorAgeFilesLines
* The present defaults for the open and close for device drivers whichphk2003-09-271-2/+0
| | | | | | | | | | | | | | provide no methods does not make any sense, and is not used by any driver. It is a pretty hard to come up with even a theoretical concept of a device driver which would always fail open and close with ENODEV. Change the defaults to be nullopen() and nullclose() which simply does nothing. Remove explicit initializations to these from the drivers which already used them.
* Only dump 512 bytes of debugging.phk2003-07-021-1/+2
| | | | Always wait for things to settle before returning.
* Use __FBSDID().obrien2003-06-111-2/+3
| | | | Approved by: phk
* Make sure we return an error message if the geom parameter is notphk2003-06-071-8/+8
| | | | located.
* Add missing va_end() calls.phk2003-06-071-0/+1
| | | | Noticed by: tmm
* Introduce g_provider_by_name() function, and use it.phk2003-06-041-10/+3
|
* Return an indicative error message.phk2003-06-021-1/+3
|
* Simplify the GEOM OAM api: Drop the request type, and let everythingphk2003-06-011-253/+185
| | | | | | | | 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.
* Add gctl_set_param() function.phk2003-05-041-0/+25
|
* Plug memory leaks.phk2003-05-021-0/+16
|
* Back out all the stuff that didn't belong in the last commit.phk2003-05-021-4/+0
|
* Use g_slice_spoiled() rather than g_std_spoiled().phk2003-05-021-0/+4
| | | | Remember to free the buffer we got from g_read_data().
* Introduce gctl_get_paraml() which gets a parameter only if it has thephk2003-04-231-0/+17
| | | | right length.
* Make gctl_error() take printfline varargs.phk2003-04-231-6/+21
|
* Implement handling of CONFIG_GEOM OAM request.phk2003-04-221-0/+39
|
* Collapse meta arguments into regular arguments, the distinction isphk2003-04-221-10/+2
| | | | more trouble than it is worth.
* Make sure we don't ignore error codes.phk2003-04-031-32/+24
|
* Remove the old config interface, the new OAM is sufficiently functionalphk2003-04-011-50/+0
| | | | now.
* Remove some debugging in the new OAM[*] and add a debug flag for otherphk2003-03-311-5/+2
| | | | | | | | | 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.
* Run a revision on the OAM api.phk2003-03-271-53/+255
| | | | | | | Use prefix gctl_ systematically. Add flag with access perms for each argument. Add ro/rw versions of argument building functions. General cleanup.
* Turn /dev/geom.ctl from a GEOM class into a plain character device driverphk2003-03-241-94/+15
| | | | instead, it will never see a disk-I/O transaction, so this is a lot simpler.
* Marshalling stuff for OAM API.phk2003-03-231-0/+185
|
* Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-181-1/+0
| | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Straighten up the geom.ctl config interface definitions.phk2002-11-061-28/+10
| | | | Sponsored by: DARPA & NAI Labs
* Now that the sectorsize and mediasize are properties of the provider,phk2002-10-201-0/+1
| | | | | | | | | | | 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 it possible to specify also via geom_t ID in the geom.ctl config ioctl.phk2002-10-201-3/+9
| | | | Sponsored by: DARPA & NAI Labs.
* Implement the GEOMCONFIGGEOM ioctl which can be used to manually createphk2002-10-141-1/+35
| | | | | | and configure an instance of a class on a give provider. Sponsored by: DARPA & NAI Labs
* Add the outline of the "/dev/geom.ctl" handling code.phk2002-10-131-0/+193
Sponsored by: DARPA & NAI Labs.
OpenPOWER on IntegriCloud