summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe
Commit message (Collapse)AuthorAgeFilesLines
* Don't free k_cfg until we're finished using it -- reverse the order ofcperciva2004-02-221-1/+1
| | | | | | | two free commands. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* If we're going to assert that logData != NULL, do it before wecperciva2004-02-221-1/+1
| | | | | | | try to dereference logData. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* We want to allocate and zero sizeof(struct foo) bytes, notcperciva2004-02-221-2/+2
| | | | | | | sizeof(struct foo *) bytes. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* Device megapatch 5/6:phk2004-02-211-2/+2
| | | | | | | | | | | | Remove the unused second argument from udev2dev(). Convert all remaining users of makedev() to use udev2dev(). The semantic difference is that udev2dev() will only locate a pre-existing dev_t, it will not line makedev() create a new one. Apart from the tiny well controlled windown in D_PSEUDO drivers, there should no longer be any "anonymous" dev_t's in the system now, only dev_t's created with make_dev() and make_dev_alias()
* Device megapatch 4/6:phk2004-02-211-0/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Change the disk(9) API in order to make device removal more robust.phk2004-02-181-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of that device were not immediately disappearing. Now the struct disk is allocate with a new call, disk_alloc() and owned by geom_disk and just abandonned by the device driver when disk_create() is called. Unfortunately, this results in a ton of "s/\./->/" changes to device drivers. Since I'm doing the sweep anyway, a couple of other API improvements have been carried out at the same time: The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to DISKFLAG_NEEDSGIANT A version number have been added to disk_create() so that we can detect, report and ignore binary drivers with old ABI in the future. Manual page update to follow shortly.
* Fixed another 0 (actually '\0') vs / NULL mixup. This completesbde2003-12-251-1/+1
| | | | unbreaking LINT on i386's.
* Use bio_offset instead of bio_blknophk2003-10-181-7/+7
|
* DuH!phk2003-10-181-2/+3
| | | | | bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in the file)
* Initialize bp->b_offset and remove comment about B_PHYS.phk2003-10-181-2/+3
|
* Rearrange the deck-chairs while we wait for scottl to GEOMify RF.phk2003-10-181-1/+1
|
* Use a dynamic major assignment for the raidctl device.scottl2003-09-292-2/+1
|
* Use __FBSDID().obrien2003-08-2460-60/+180
| | | | Also some minor style cleanups.
* Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout.phk2003-07-271-1/+1
|
* Add a "int fd" argument to VOP_OPEN() which in the future willphk2003-07-261-3/+3
| | | | | | | | | contain the filedescriptor number on opens from userland. The index is used rather than a "struct file *" since it conveys a bit more information, which may be useful to in particular fdescfs and /dev/fd/* For now pass -1 all over the place.
* Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-291-1/+1
| | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Use bioq_flush() to drain a bio queue with a specific error code.phk2003-04-011-0/+1
| | | | | | | | Retain the mistake of not updating the devstat API for now. Spell bioq_disksort() consistently with the remaining bioq_*(). #include <geom/geom_disk.h> where this is more appropriate.
* Use td->td_ucred instead of td->td_proc->p_ucred.jhb2003-03-201-1/+1
|
* Centralize the devstat handling for all GEOM disk device driversphk2003-03-081-13/+0
| | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+5
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Use canonical format for cdevsw initialization.phk2003-03-021-13/+13
|
* NO_GEOM cleanup:phk2003-02-271-115/+42
| | | | | | | | | | | Move <sys/conf.h> before <sys/disk.h>. No need for raidread()/raidwrite(), we have generic code for that. Remove non-functional dump code. Make raidinit() return the softc, not the dev_t. Move to "struct disk*" centric API. Fix printfs' to get name from struct disk instead of dev_t. OK'ed by: scottl
* NO_GEOM cleanup:phk2003-02-211-1/+1
| | | | | | | | Change the argument to disk_destroy() to be the same struct disk * as disk_create() takes. This enables drivers to ignore the (now) bogus dev_t which disk_create() returns.
* Back out M_* changes, per decision of the TRB.imp2003-02-192-8/+8
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-8/+8
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* #if 0 one more line to make this compile without subr_disklabel.c.phk2003-01-201-0/+4
| | | | Hopefully forgiven by: scottl
* Remove stale reference to deprecated mini-disklayer stuff.scottl2003-01-201-13/+0
|
* Remove unused second argument from DEV_STRATEGY().phk2003-01-031-2/+2
|
* Remove unused second argument from BIO_STRATEGY()phk2003-01-031-1/+1
|
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* When compiling the kernel do not implicitly include filedesc.h from proc.h,alfred2003-01-011-0/+1
| | | | | | this was causing filedesc work to be very painful. In order to make this work split out sigio definitions to thier own header (sigio.h) which is included from proc.h for the time being.
* Use UID_ and GID_ constants for uid and gid arguments to make_dev()rwatson2002-12-311-1/+2
| | | | | | | | | | for the raidctl device. Select a more conservative default for the permissions for /dev/raidctl since the operations are performed using ioctl() not read() and write(). Submitted by: kris Reviewed by: scottl
* Play nice with GEOM and use the appropriate ioctls for getting thescottl2002-12-101-20/+12
| | | | | | | | partition size and sector size. The old way of groveling through the disklabel doesn't work anymore. Noticed by: anholt Approved by: re
* Fix make_dev() to use 0644 instead of 0x644 for default permissionsscottl2002-11-251-1/+1
| | | | | Spotted by: kris Approved by: re
* Reduce namespace pollution to userland.scottl2002-10-281-0/+2
| | | | Spotted-by: bde
* After much delay and anticipation, welcome RAIDFrame into the FreeBSDscottl2002-10-20134-0/+42340
world. This should be considered highly experimental. Approved-by: re
OpenPOWER on IntegriCloud