summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dev.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Always issue ioctls as BIO_GEATTR requests. The direction of data copies onphk2003-01-131-4/+6
| | | | | | | ioctls are no reliable indication of the ioctls "set" or "get" nature or if such simplistic categories can even be applied. MFC candidate: boot0cfg issue.
* Remove g_silence(). It does not do anything anymore.phk2003-01-131-2/+0
|
* Update si_bsize_phys on open.phk2003-01-021-0/+1
| | | | MFC candidate.
* Add an XXX comment to explain the predicament.phk2002-12-261-1/+7
|
* Add a couple of KASSERTS, just in case.phk2002-12-131-0/+4
|
* Add KASSERT for bio_cmd validity here as well. Various hacks stillphk2002-11-011-0/+4
| | | | bypass specfs.
* Add a g_dev_print() function which prints all the /dev entries GEOMphk2002-10-251-0/+14
| | | | know about.
* Loose the g_dev_clone() noise.phk2002-10-251-1/+0
|
* Now that the sectorsize and mediasize are properties of the provider,phk2002-10-201-9/+5
| | | | | | | | | | | 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.
* Use %jd instead of %lld now that we have it.phk2002-10-201-5/+6
|
* The argument to the DIOCGMEDIASIZE ioctl() is an off_t, not an u_int.tmm2002-10-191-1/+1
| | | | Reviewed by: phk
* Return an error if the drive reports heads/sectors that do not make sense.njl2002-10-151-0/+8
| | | | | | This fixes a divide by zero in fdisk(8) Reviewed by: phk
* Copyin and copyout are only possible from a process-native thread,phk2002-10-071-18/+10
| | | | | | | | | | | | | | | and therefore we need a way for ioctl handlers to run in that thread in GEOM. Rather than invent a complicated registration system to recognize which ioctl handler to use for a given ioctl, we still schedule all ioctls down the tree as bio transactions but add a special return code that means "call me directly" and have the geom_dev layer do that. Use this for all ioctls that make it as far as a diskdriver to avoid any backwards compatibility problems. Requested by: scottl Sponsored by: DARPA & NAI Labs
* Properly isolate the locking domains of sysctl from the topology lockphk2002-10-041-0/+4
| | | | | | for the sysctls which report the configuration. Sponsored by: DARPA & NAI Labs.
* Put some failing ioctl related printfs under a suitable debug flag.phk2002-10-021-12/+14
| | | | Sponsored by: DARPA & NAI Labs.
* Use the canonical root:operator 0640 for GEOM disk devices.phk2002-10-011-1/+1
| | | | | Spotted by: brooks Sponsored by: DARPA & NAI Labs.
* Style, whitespace and lint fixes.phk2002-09-281-14/+15
| | | | Sponsored by: DARPA & NAI Labs.
* Various no-ops:phk2002-09-271-1/+1
| | | | | | | | | | | Add a __unused. Make the 2byte decoder functions return 16 bits for the benefits of picky lints. No need to grab giant around a tsleep() when we have a timeout. Sponsored by: DARPA & NAI Labs.
* Retire now unused DIOCGDVIRGIN kludge.phk2002-09-201-5/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Don't respect the O_EXCL flag, we don't get it back on close so we cannotphk2002-09-061-0/+8
| | | | | | | correctly track it. Spotted by: peter Sponsored by: DARPA & NAI Labs.
* Improve some on the naming.phk2002-06-091-6/+6
| | | | Submitted by: iedowse
* Remove the "-class" suffix from classes, they will not be ambiguous.phk2002-05-211-2/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Don't grab Giant around malloc(9) and free(9).phk2002-05-201-40/+26
| | | | | | | | Don't grab Giant around wakeup(9). Don't print verbose messages about each device found in geom_dev. Various cleanups. Sponsored by: DARPA & NAI Labs.
* Implement the GEOMGETCONF ioctl which returns vital stats for thephk2002-04-231-1/+17
| | | | | | current device in XML in an sbuf. Sponsored by: DARPA & NAI Labs
* Make kernel dumps work with GEOM.phk2002-04-191-0/+19
| | | | | | | | | | Notice that if the device on which the dump is set is destroyed for any reason, the dump setting is lost. This in particular will happen in the case of spoilage. For instance if you set dump on ad0s1b and open ad0 for writing, ad0s* will be spoilt and the dump setting lost. See geom(4) for more about spoiling. Sponsored by: DARPA & NAI Labs.
* Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the startphk2002-04-091-1/+4
| | | | | | of the device magic stuff might occupy. Sponsored by: DARPA & NAI Labs.
* Various stylistic nit picking.phk2002-04-091-2/+2
| | | | Sponsored by: DARPA & NAI Labs.
* In reverence of the 3rd X11 development rule:phk2002-04-081-3/+0
| | | | | | | | | | 3.The only thing worse than generalizing from one example is generalizing from no examples at all. Remove the fwcylinders attribute before anybody gets the idea that we alone have squared the circle. Sponsored by: DARPA & NAI Labs.
* Move access and orphan member functions from class to geom.phk2002-04-041-2/+1
| | | | Sponsored by: DARPA & NAI Labs
* In the absense of any smarter way to do this, cast various printfphk2002-03-281-2/+3
| | | | arguments to silence printf format warnings.
* Eliminate some thread pointers which do not make sense anymore.phk2002-03-261-12/+12
| | | | | 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-8/+8
|
* Add five GEOM oriented ioctls to get basic information about a geom device.phk2002-03-191-11/+31
|
* Change the giant-dropping method a fair bit to keep WITNESS morephk2002-03-171-8/+6
| | | | happy.
* Hmm, talk about optimizer-fodder. Make the DIOCGDVIRGIN hack work again.phk2002-03-161-6/+4
|
* Add a generic and general ioctl pass-through mechanism.phk2002-03-161-34/+26
| | | | It should now be posible to issue ioctls to SCSI CD drives.
* First commit of the GEOM subsystem to make it easier for people tophk2002-03-111-0/+382
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