summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix so that when a slice or a partition is removed through g_slice_config(),rodrigc2005-09-141-0/+1
| | | | | | | | | | | | it is destroyed in GEOM, in addition to being removed from /dev. Before this patch, if you applied a new MBR which deleted a slice, the deleted slice would not be in /dev, but it would still appear in kern.geom.conftxt and kern.geom.confxml, which would confused the diskPartitionEditor in sysinstall. Submitted by: pjd Tested by: pjd, rodrigc MFC after: 1 week
* Stop wasting a bootverbose line on all geom slices.phk2004-11-031-1/+1
|
* Do not override the class provided dumpconf function.phk2004-08-181-1/+2
|
* Check for a NULL pointer before dereferencing it.le2004-07-251-0/+2
|
* We only need to check for overlaps if we increasing access counts.phk2004-07-041-17/+19
|
* Free only if pointer isn't NULL.pjd2004-07-011-1/+2
|
* Don't force class to give a valid softc to g_slice_new(), it is not alwayspjd2004-06-241-2/+6
| | | | | | needed. Approved by: phk
* Remove the absolute count g_access_abs() function since experience hasphk2004-02-121-2/+2
| | | | | | | | | | | | shown that it is not useful. Rename the relative count g_access_rel() function to g_access(), only the name has changed. Change all g_access_rel() calls in our CVS tree to call g_access() instead. Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source code compatibility.
* Use __FBSDID().obrien2003-06-111-2/+2
| | | | Approved by: phk
* Add missing va_end() calls.phk2003-06-071-1/+2
| | | | Noticed by: tmm
* Add a destroy_geom method to the slice "library".phk2003-05-311-2/+11
| | | | | | If a slice class has no destroy_geom method, use this one. This should allow all slicers to kldload.
* Use a more tailored spoil routine for slices, and take advantage ofphk2003-05-021-15/+19
| | | | g_wither_geom() to do most of the work for us.
* Rename g_slice_init() to the more appropriate g_slice_alloc() and givephk2003-05-021-4/+14
| | | | it a g_slice_free() partner function.
* Rename g_call_me() to g_post_event(), and give it a flagphk2003-04-231-1/+2
| | | | argument to determine if we can M_WAITOK in malloc.
* Do not mandate that slicers have a private ->start(), they may not needphk2003-04-221-1/+4
| | | | one. KASSERT() that they have one if G_SLICE_HOT_START is used.
* Make more of the "hotspot" stuff generic:phk2003-04-191-21/+54
| | | | | | | Give the class a way to specify the necessary action for read/delete/write: ALLOW, DENY, START or CALL. Update geom_bsd to use this.
* Create a dedicated structure for holding hotspot information rather thanphk2003-04-191-11/+12
| | | | using slice structures for it.
* 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.
* Retire the "frontstuff" record keeping, it was no match for thephk2003-04-121-22/+1
| | | | in-band meta-data of BSD labels and a more complex solution will be needed.
* Remove all references to BIO_SETATTR. We will not be using it.phk2003-04-031-1/+0
|
* 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-4/+4
| | | | Approved by: trb
* Don't divide by zero if there is no stripewidth specified.phk2003-02-111-2/+4
|
* Better names for struct disk elements: d_maxsize, d_stripeoffsetphk2003-02-111-3/+5
| | | | | | | | | | | and d_stripesisze; Introduce si_stripesize and si_stripeoffset in struct cdev so we can make the visible to clustering code. Add stripesize and stripeoffset to providers. DTRT with stripesize and stripeoffset in various places in GEOM.
* Propagate G_PF_CANDELETE to our own providers from the provider we attach to.phk2003-02-111-0/+2
|
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-4/+4
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Add a check for negative offset locations and return EINVAL for them.phk2002-12-171-0/+5
|
* Get rid of g_slice_addslice() and use g_slice_config() instead.phk2002-12-161-32/+0
| | | | Tested with: i386 + src/tools/regression/geom
* Constification and some s/int/u_int/ changes.phk2002-12-161-34/+35
|
* Don't interpret the hotspots relative to all slices on a slicer, butphk2002-12-131-2/+3
| | | | relative to the parent device.
* Add a simplified version of the hot-spot code to enable us to protectphk2002-12-021-4/+86
| | | | | | in-band disklabels from in-band vandalism. Approve by: re
* Remember to update the providers idea of its size when we reconfigurephk2002-11-201-0/+1
| | | | | | a slice child. Approved by: re
* Add the remaning part of the new libdisk interaction.phk2002-10-281-0/+6
| | | | | | | 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
* Reduce the GEOM verbosity under bootverbose to something more sufferable.phk2002-10-251-5/+20
| | | | | | | This is not quite the set of information I would want, but the tree where I have the "correct" version is messed up with conflicts. Sponsored by: DARPA & NAI Labs.
* Now that the sectorsize and mediasize are properties of the provider,phk2002-10-201-6/+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.
* Make the sectorsize a property of providers so we can include it in the XMLphk2002-10-201-3/+8
| | | | | | output. Sponsored by: DARPA & NAI Labs
* Use %jd instead of %lld now that we have it.phk2002-10-201-10/+11
|
* Remove a bogus local variable.phk2002-10-141-2/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Retire g_io_fail() and let g_io_deliver() take an error argument instead.phk2002-09-301-7/+6
| | | | Sponsored by: DARPA & NAI Labs.
* Style, whitespace and lint fixes.phk2002-09-281-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
* First confirmed kill from my Flexelint license: Check return valuephk2002-09-281-0/+4
| | | | | | | of g_clone_bio(). Detected by: http://www.gimpel.com/html/flex.htm Sponsored by: DARPA & NAI Labs.
* Add the new g_slice_config() call, which can add/delete/change a slice,phk2002-09-271-2/+57
| | | | | | | | | with support for trying, doing and forcing. This will eventually replace g_slice_addslice() which gets changed from grabbing topology to requing it in this commit as well. Sponsored by: DARPA & NAI Labs.
* Add checks for g_clone_bio() returning NULL, it will be possible RSN.phk2002-09-271-1/+6
| | | | Sponsored by: DARPA & NAI Labs.
* Improve some on the naming.phk2002-06-091-3/+3
| | | | Submitted by: iedowse
* Include needed #include for regression tests.phk2002-05-191-2/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Implement the GEOMGETCONF ioctl which returns vital stats for thephk2002-04-231-1/+1
| | | | | | current device in XML in an sbuf. Sponsored by: DARPA & NAI Labs
* All in a days work: make a function static.phk2002-04-231-1/+1
|
* Introduce some serious paranoia to try to catch a memory overwrite problemphk2002-04-231-0/+2
| | | | | | as early as possible. Sponsored by: DARPA & NAI Labs
* Make kernel dumps work with GEOM.phk2002-04-191-0/+9
| | | | | | | | | | 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-3/+26
| | | | | | of the device magic stuff might occupy. Sponsored by: DARPA & NAI Labs.
OpenPOWER on IntegriCloud