aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_freebsdkintf.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove RAIDFrame. It hasn't worked since GEOM replaced the old diskScott Long2004-03-161-3192/+0
| | | | | | | | | mini-layer. I don't have time to bing it forward into the GEOM world, and no one else has stepped forward to claim it. It'll be in the Attic for safe keeping for now. Notes: svn path=/head/; revision=127066
* Don't free k_cfg until we're finished using it -- reverse the order ofColin Percival2004-02-221-1/+1
| | | | | | | | | | two free commands. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl Notes: svn path=/head/; revision=126114
* Device megapatch 5/6:Poul-Henning Kamp2004-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() Notes: svn path=/head/; revision=126081
* Device megapatch 4/6:Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=126080
* Change the disk(9) API in order to make device removal more robust.Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=125975
* Fixed another 0 (actually '\0') vs / NULL mixup. This completesBruce Evans2003-12-251-1/+1
| | | | | | | unbreaking LINT on i386's. Notes: svn path=/head/; revision=123829
* Use bio_offset instead of bio_blknoPoul-Henning Kamp2003-10-181-7/+7
| | | | Notes: svn path=/head/; revision=121209
* DuH!Poul-Henning Kamp2003-10-181-2/+3
| | | | | | | | bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in the file) Notes: svn path=/head/; revision=121205
* Initialize bp->b_offset and remove comment about B_PHYS.Poul-Henning Kamp2003-10-181-2/+3
| | | | Notes: svn path=/head/; revision=121195
* Rearrange the deck-chairs while we wait for scottl to GEOMify RF.Poul-Henning Kamp2003-10-181-1/+1
| | | | Notes: svn path=/head/; revision=121187
* Use a dynamic major assignment for the raidctl device.Scott Long2003-09-291-1/+0
| | | | Notes: svn path=/head/; revision=120578
* Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout.Poul-Henning Kamp2003-07-271-1/+1
| | | | Notes: svn path=/head/; revision=118094
* Add a "int fd" argument to VOP_OPEN() which in the future willPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=118047
* Use bioq_flush() to drain a bio queue with a specific error code.Poul-Henning Kamp2003-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. Notes: svn path=/head/; revision=112946
* Centralize the devstat handling for all GEOM disk device driversPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=111979
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-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) Notes: svn path=/head/; revision=111815
* Use canonical format for cdevsw initialization.Poul-Henning Kamp2003-03-021-13/+13
| | | | Notes: svn path=/head/; revision=111753
* NO_GEOM cleanup:Poul-Henning Kamp2003-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 Notes: svn path=/head/; revision=111648
* NO_GEOM cleanup:Poul-Henning Kamp2003-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. Notes: svn path=/head/; revision=111216
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-7/+7
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-7/+7
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* #if 0 one more line to make this compile without subr_disklabel.c.Poul-Henning Kamp2003-01-201-0/+4
| | | | | | | Hopefully forgiven by: scottl Notes: svn path=/head/; revision=109584
* Remove stale reference to deprecated mini-disklayer stuff.Scott Long2003-01-201-13/+0
| | | | Notes: svn path=/head/; revision=109571
* Remove unused second argument from DEV_STRATEGY().Poul-Henning Kamp2003-01-031-2/+2
| | | | Notes: svn path=/head/; revision=108586
* Remove unused second argument from BIO_STRATEGY()Poul-Henning Kamp2003-01-031-1/+1
| | | | Notes: svn path=/head/; revision=108584
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* When compiling the kernel do not implicitly include filedesc.h from proc.h,Alfred Perlstein2003-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. Notes: svn path=/head/; revision=108524
* Use UID_ and GID_ constants for uid and gid arguments to make_dev()Robert Watson2002-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 Notes: svn path=/head/; revision=108485
* Play nice with GEOM and use the appropriate ioctls for getting theScott Long2002-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 Notes: svn path=/head/; revision=107730
* Fix make_dev() to use 0644 instead of 0x644 for default permissionsScott Long2002-11-251-1/+1
| | | | | | | | Spotted by: kris Approved by: re Notes: svn path=/head/; revision=107219
* After much delay and anticipation, welcome RAIDFrame into the FreeBSDScott Long2002-10-201-0/+3294
world. This should be considered highly experimental. Approved-by: re Notes: svn path=/head/; revision=105503