aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pst/pst-raid.c
Commit message (Collapse)AuthorAgeFilesLines
* pst: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-1/+1
| | | | Notes: svn path=/head/; revision=365172
* Ever since the block layer expanded its command syntax beyond justScott Long2020-02-071-6/+8
| | | | | | | | | | | BIO_READ and BIO_WRITE, we've handled this expanded syntax poorly in drivers when the driver doesn't support a particular command. Do a sweep and fix that. Reported by: imp Notes: svn path=/head/; revision=357647
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Cleanups to pst(4):John Baldwin2014-11-181-13/+12
| | | | | | | | | | | - Use callout(9) instead of timeout(9). - Don't bother zero'ing the softc. - Destroy mutex on detach. Tested by: no one Notes: svn path=/head/; revision=274678
* Convert files to UTF-8Ulrich Spörlein2012-01-151-1/+1
| | | | Notes: svn path=/head/; revision=230132
* Flush the queue of minor fixes to pst.Søren Schmidt2004-09-151-3/+3
| | | | Notes: svn path=/head/; revision=135267
* Change the disk(9) API in order to make device removal more robust.Poul-Henning Kamp2004-02-181-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Dont re-arm the timeout twice on a timeout error.Søren Schmidt2003-09-081-5/+0
| | | | | | | | | | The problem with the first timeout still exsists though, but not it doesn't enter a groundbound spin loop :) Found by: Aaron Smith <aaron@mutex.org> Notes: svn path=/head/; revision=119874
* Use __FBSDID().David E. O'Brien2003-08-241-2/+3
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119285
* Pull the pst driver out from under GAINT.Søren Schmidt2003-04-281-47/+46
| | | | Notes: svn path=/head/; revision=114154
* Instead of not grapping a request binfinish(ENOMEM) it if malloc fails.Søren Schmidt2003-04-021-1/+2
| | | | Notes: svn path=/head/; revision=112977
* Use bioq_flush() to drain a bio queue with a specific error code.Poul-Henning Kamp2003-04-011-2/+2
| | | | | | | | | | | 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-12/+4
| | | | | | | | | | | 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
* NO_GEOM cleanup:Poul-Henning Kamp2003-02-251-25/+12
| | | | | | | | | | Move to "struct disk *" centric API. Add NULL check to a malloc(9) return value. Ok'ed by: sos Notes: svn path=/head/; revision=111472
* Fix so it compiles with the new disklabel stuff.Søren Schmidt2002-09-271-5/+5
| | | | Notes: svn path=/head/; revision=104066
* (This commit touches about 15 disk device drivers in a very consistentPoul-Henning Kamp2002-09-201-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.) If struct disklabel is the messenger: kill the messenger. Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead. Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels. Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them. The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it. This concludes (modulus any mistakes) the series of disklabel related commits. I belive it all amounts to a NOP for all the rest of you :-) Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=103714
* Fix args for contigmalloc, cosmetics.Søren Schmidt2002-08-181-10/+10
| | | | Notes: svn path=/head/; revision=102058
* Finally first shot at a driver for the Promise SuperTrak SX6000 ATA RAIDSøren Schmidt2002-07-311-0/+401
controller. Some testing has already been done, but its still greenish. RAID's has to be setup via the BIOS on the SuperTrak, but all RAID types are supported by the driver. The SuperTrak rebuilds failed arrays on the fly and supports spare disks etc etc... Add "device pst" to your config file to use. As usual bugsreports, suggestions etc are welcome... Development sponsored by: Advanis Hardware donated by: Promise Inc. Notes: svn path=/head/; revision=101100