phk
7099deadda
The present defaults for the open and close for device drivers which
...
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.
2003-09-27 12:01:01 +00:00
phk
cee4a6c39a
Only dump 512 bytes of debugging.
...
Always wait for things to settle before returning.
2003-07-02 08:07:07 +00:00
obrien
40ee2bd5c8
Use __FBSDID().
...
Approved by: phk
2003-06-11 06:49:16 +00:00
phk
01274259b9
Make sure we return an error message if the geom parameter is not
...
located.
2003-06-07 15:31:44 +00:00
phk
69b4e9ce01
Add missing va_end() calls.
...
Noticed by: tmm
2003-06-07 10:16:53 +00:00
phk
e23e34a198
Introduce g_provider_by_name() function, and use it.
2003-06-04 18:17:52 +00:00
phk
9a8f0922c0
Return an indicative error message.
2003-06-02 20:35:37 +00:00
phk
069191fcbf
Simplify the GEOM OAM api: Drop the request type, and let everything
...
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.
2003-06-01 13:47:51 +00:00
phk
f1297dcac6
Add gctl_set_param() function.
2003-05-04 19:24:34 +00:00
phk
637729fea0
Plug memory leaks.
2003-05-02 12:49:41 +00:00
phk
055cf65eb1
Back out all the stuff that didn't belong in the last commit.
2003-05-02 06:42:59 +00:00
phk
4c52a206d2
Use g_slice_spoiled() rather than g_std_spoiled().
...
Remember to free the buffer we got from g_read_data().
2003-05-02 06:36:14 +00:00
phk
2d7e7620e8
Introduce gctl_get_paraml() which gets a parameter only if it has the
...
right length.
2003-04-23 08:03:47 +00:00
phk
90684346d6
Make gctl_error() take printfline varargs.
2003-04-23 07:50:01 +00:00
phk
c5dae9372b
Implement handling of CONFIG_GEOM OAM request.
2003-04-22 21:01:46 +00:00
phk
817cb6ca1f
Collapse meta arguments into regular arguments, the distinction is
...
more trouble than it is worth.
2003-04-22 19:42:05 +00:00
phk
7d796a935a
Make sure we don't ignore error codes.
2003-04-03 11:19:24 +00:00
phk
80780d2ba2
Remove the old config interface, the new OAM is sufficiently functional
...
now.
2003-04-01 07:33:56 +00:00
phk
5b75c05966
Remove some debugging in the new OAM[*] and add a debug flag for other
...
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.
2003-03-31 18:35:37 +00:00
phk
2d56ed957a
Run a revision on the OAM api.
...
Use prefix gctl_ systematically.
Add flag with access perms for each argument.
Add ro/rw versions of argument building functions.
General cleanup.
2003-03-27 14:35:00 +00:00
phk
063b352331
Turn /dev/geom.ctl from a GEOM class into a plain character device driver
...
instead, it will never see a disk-I/O transaction, so this is a lot simpler.
2003-03-24 13:37:15 +00:00
phk
35c6fd6e4d
Marshalling stuff for OAM API.
2003-03-23 10:16:14 +00:00
phk
e059b79437
Including <sys/stdint.h> is (almost?) universally only to be able to use
...
%j in printfs, so put a newsted include in <sys/systm.h> where the printf
prototype lives and save everybody else the trouble.
2003-03-18 08:45:25 +00:00
imp
cf874b345d
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
alfred
bf8e8a6e8f
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
phk
ad8a01f928
Straighten up the geom.ctl config interface definitions.
...
Sponsored by: DARPA & NAI Labs
2002-11-06 20:05:15 +00:00
phk
af63f9546a
Now that the sectorsize and mediasize are properties of the provider,
...
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.
2002-10-20 20:28:24 +00:00
phk
fd0bad29ea
Make it possible to specify also via geom_t ID in the geom.ctl config ioctl.
...
Sponsored by: DARPA & NAI Labs.
2002-10-20 08:42:18 +00:00
phk
d855c32204
Implement the GEOMCONFIGGEOM ioctl which can be used to manually create
...
and configure an instance of a class on a give provider.
Sponsored by: DARPA & NAI Labs
2002-10-14 10:05:23 +00:00
phk
1eafd1bc95
Add the outline of the "/dev/geom.ctl" handling code.
...
Sponsored by: DARPA & NAI Labs.
2002-10-13 20:33:33 +00:00