summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dump.c
Commit message (Collapse)AuthorAgeFilesLines
* Make the kern.geom.conftxt sysctl more usable by also dumping themarcel2005-11-121-5/+4
| | | | | | | | | | | MD class. Previously only the DISK class was dumped. The only consumer of this sysctl is libdisk (i.e. sysinstall) and it tests explicitly for instances of the DISK class. Dumping other classes is therefore harmless. By also dumping the MD class regression tests can be written that use the MD class for operations that would normally be done on the DISK class. The sysctl can now be used to test if those operations took an effect. An example is partitioning.
* Rearrange some of the GEOM debugging tools to be more structured.phk2004-03-101-1/+0
| | | | | | | | | | | | | | | | | | Retire g_sanity() and corresponding debugflag (0x8) Retire g_{stall,release}_events(). Under #ifdef DIAGNOSTIC: Make g_valid_obj() an official function and have it return an an non-zero integer which indicates the kind of object when found. Implement G_VALID_{CLASS,GEOM,CONSUMER,PROVIDER}() macros based on g_valid_obj(). Sprinkle calls to these macros liberally over the infrastructure. Always check that we do not free a live object.
* Re-arrange and consolidate some random debugging stuffscottl2003-12-071-31/+0
|
* Handle geoms which are withering away specially in the dump functions.phk2003-07-081-3/+11
|
* Use __FBSDID().obrien2003-06-111-2/+2
| | | | Approved by: phk
* Add missing va_end() calls.phk2003-06-071-0/+1
| | | | Noticed by: tmm
* Introduce a g_waitfor_event() function which posts an event and waits forphk2003-04-231-3/+0
| | | | it to be run (or cancelled) and use this instead of home-rolled versions.
* Time has run from the "run GEOM in userland" harness, and the new regressionphk2003-04-131-11/+0
| | | | | | | test is built to test GEOM as running in the kernel. This commit is basically "unifdef -D_KERNEL" to remove the mainly #include related code to support the userland-harness.
* Add handling for cancelled events in the g_call_me() methods.phk2003-04-021-3/+6
|
* Change events to have an array of "void *" references, and give thephk2003-04-021-3/+3
| | | | | | | | | | | 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.
* 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.
* Commit the correct copy of the g_stat structure.phk2003-02-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add debug.sizeof.g_stat sysctl. Set the id field of the g_stat when we create consumers and providers. Remove biocount from consumer, we will use the counters in the g_stat structure instead. Replace one field which will need to be atomically manipulated with two fields which will not (stat.nop and stat.nend). Change add companion field to bio_children: bio_inbed for the exact same reason. Don't output the biocount in the confdot output. Fix KASSERT in g_io_request(). Add sysctl kern.geom.collectstats defaulting to off. Collect the following raw statistics conditioned on this sysctl: for each consumer and provider { total number of operations started. total number of operations completed. time last operation completed. sum of idle-time. for each of BIO_READ, BIO_WRITE and BIO_DELETE { number of operations completed. number of bytes completed. number of ENOMEM errors. number of other errors. sum of transaction time. } } API for getting hold of these statistics data not included yet.
* Constification and some s/int/u_int/ changes.phk2002-12-161-1/+1
|
* Do not call the dumpconf method unless there is one.phk2002-11-201-4/+5
| | | | | | | Compare pointers with NULL. Partially submitted by: Christian Carstensen <cc@gate5.de> Approved by: re
* Remove harmless but irritating printf.phk2002-11-081-2/+0
|
* Make this compile in the userland shims again.phk2002-11-011-0/+1
| | | | Sponsored by: DARPA & NAI Labs
* Add the remaning part of the new libdisk interaction.phk2002-10-281-0/+44
| | | | | | | WARNING: This is not a published interface, it is a stopgap measure for WARNING: libdisk so we can get 5.0-R out of the door. Sponsored by: DARPA & NAI Labs
* Make the sectorsize a property of providers so we can include it in the XMLphk2002-10-201-0/+1
| | | | | | output. Sponsored by: DARPA & NAI Labs
* Use %jd instead of %lld now that we have it.phk2002-10-201-0/+3
|
* Add more KASSERTS.phk2002-10-141-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Properly isolate the locking domains of sysctl from the topology lockphk2002-10-041-14/+12
| | | | | | for the sysctls which report the configuration. Sponsored by: DARPA & NAI Labs.
* Retire g_io_fail() and let g_io_deliver() take an error argument instead.phk2002-09-301-8/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Remove "magicspace". It looks good on paper, it doesn't work in practice.phk2002-09-061-19/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Introduce the concept of "magic spaces", and implement them in most ofphk2002-05-211-0/+19
| | | | | | | | | | | | | | | | 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.
* Improve the cross-references in the XML output.phk2002-04-241-12/+9
| | | | | Explained by: des Sponsored by: DARPA & NAI Labs.
* Introduce some serious paranoia to try to catch a memory overwrite problemphk2002-04-231-0/+1
| | | | | | as early as possible. Sponsored by: DARPA & NAI Labs
* Make life easier for reference-vector generatorts in tools/regression/geomphk2002-04-191-0/+3
| | | | | | by including a FreeBSD friendly CVS identifier in the XML output. Sponsored by: DARPA & NAI Labs.
* s/classs/classes/ to fixup grammer after the previous global renaming.phk2002-04-041-2/+2
| | | | Sponsored by: DARPA & NAI Labs
* In the absense of any smarter way to do this, cast various printfphk2002-03-281-1/+1
| | | | arguments to silence printf format warnings.
* Eliminate some thread pointers which do not make sense anymore.phk2002-03-261-0/+1
| | | | | 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-13/+13
|
* First commit of the GEOM subsystem to make it easier for people tophk2002-03-111-0/+275
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