summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe/rf_freebsdkintf.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-291-1/+0
|
* 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.
* 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.
* 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-191-7/+7
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-7/+7
| | | | 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
* After much delay and anticipation, welcome RAIDFrame into the FreeBSDscottl2002-10-201-0/+3294
world. This should be considered highly experimental. Approved-by: re
OpenPOWER on IntegriCloud