summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* make a macro instead of #ifdef DEBUG if() printf() #endif; no functional changemickey2005-09-131-169/+89
|
* remove "0x" in front of %p in printfs.art2005-05-221-2/+2
| | | | eyeballed by krw@
* ANSIfy, some KNF and zap a little bit of whitespace.niallo2005-05-121-75/+28
| | | | | | No binary changes. ok mickey@
* Add a bzero() after malloc() when allocating component info in ccdinit().niallo2005-05-121-1/+2
| | | | | | | This fixes a panic in ccd(4) mirroring where the second component could be wrongly treated as failed, which leads to uvm_fault in write operation. ok mickey@
* init pool after we allocate softc array in case malloc failsmickey2005-03-301-7/+7
|
* calculate the rpm for a disklabel; implement new io discipline for mirror; this also changes the mirror striping strategy a bit to achieve the scatter-gathering; of course it has been proven that new discipline still makes troubles thus not enabling it yet );mickey2005-03-251-29/+42
|
* initialise min arg to uvm_km_suballoc; not currently enabled code pathmickey2005-03-121-2/+4
|
* fix a buffer-done race that makes mirroring work now;mickey2005-02-241-113/+130
| | | | | | use pool instead of malloc/free and this fixes new buffer mode; implement DIOCGPDINFO for disklabel -d; tested by henning@ millert@ fries@
* new arg to disk_unbusy, to record separate read/write statistics.tedu2004-02-151-2/+3
| | | | | looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
* remove uvm_extern.hbrad2004-01-091-3/+1
| | | | | | tested on alpha, i386, powerpc, sparc64, m68k. ok miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* sprintf -> snprintf, plus check for overflow in device name.krw2003-04-041-2/+6
| | | | ok deraadt@ millert@
* In ccdsize(), check for CCDF_INITED before doing the ccdopen().millert2003-03-281-6/+9
| | | | Adapted from NetBSD.
* Use appropriate VM_MAP constants rather than hardcoded values inmiod2002-11-101-2/+3
| | | | uvm_map_create() and uvm_km_suballoc().
* Make sure that b_iodone handlers are called at splbio (and splassert(IPL_BIO) in all known callers, just to make sure).art2002-05-241-4/+4
|
* protect biodone with splbio.art2002-05-231-1/+5
|
* First round of __P removal in sysmillert2002-03-141-19/+19
|
* zap some typedefs.art2001-11-281-2/+2
| | | | | | | | vm_map_t -> struct vm_map * vm_map_entry_t -> struct vm_map_entry * simple_lock_data_t -> struct simplelock (uvm not done yet, coming in the next commit)
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+1
| | | | (Look ma, I might have broken the tree)
* merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okmickey2001-09-191-3/+1
|
* zap old vmart2001-06-271-17/+1
|
* Get rid of CLSIZE and all related stuff.art2001-05-051-9/+8
| | | | | | | | | CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.
* vm_offset_t -> vaddr_tart1999-11-261-2/+2
|
* s/vm_offset_t/vaddr_t/gmickey1999-09-111-3/+3
|
* roundup(foo, CLBYTES) -> clrnd(round_page(foo))art1999-09-101-4/+4
|
* uvm compatart1999-02-261-3/+21
|
* Add a "spoofonly" argument to readdisklabel() which will be used tomillert1998-10-031-2/+2
| | | | | implement an ioctl to get a spoofed label even for disks that have a label on them.
* don't rely on b_resid being signedmillert1998-08-041-3/+3
|
* Play nicely with soft updates. Based on a patch from Kirk via FreeBSD--untestedmillert1998-03-101-1/+3
|
* add FS_CCD, make ccd prefer such partitions. It still accespts FS_BSDFFS, and something will change about that soonderaadt1998-02-061-2/+3
|
* typoniklas1998-01-251-2/+2
|
* Disable the new buffer policy for nowniklas1998-01-251-1/+4
|
* Remove redundant splbio I added yesterdayniklas1998-01-251-4/+2
|
* On the other hand... no need for recursive locks.niklas1998-01-241-3/+1
|
* Well when MP comes.. we need locksniklas1998-01-241-1/+3
|
* Protect allocation of ccd physmem of ccd interruptsniklas1998-01-241-2/+5
|
* Eek, missing splbio, although splx was there. marging two "if"sniklas1998-01-241-3/+3
|
* remove obsolete commentniklas1998-01-211-6/+1
|
* Clear buffers on allocation, suggested by csapuntzniklas1998-01-091-1/+2
|
* DOH! I managed to alloc 0 bytes always for the segment descriptors.niklas1998-01-071-3/+4
|
* compile w/ DEBUGmickey1997-12-151-2/+2
|
* Make compile on systems where NBPG is not a constantniklas1997-12-121-17/+44
|
* Optimized to perform well on small interleaves which makes the ccd driverniklas1997-11-261-124/+281
| | | | | | | really useful as a performance booster. The interleave needs to be a multiple of the software page size (CLBYTES) and not have mirror components if the new optimized policy should be used, otherwise the old policy will be used still.
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-5/+5
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-5/+5
|
* VFS Lite2 Changescsapuntz1997-10-061-5/+5
|
* Change the bounds_check_with_label API to also take a cpu_disklabelniklas1997-08-081-3/+4
| | | | | | | | | | | | | | | | | | | | reference for making transferral of meta-information possible from readdisklabel to bounds_check_with_label. The first (and maybe only) thing that will use this is the multi-disklabel-format code on the alpha where the labelsector is passed via cpu_disklabel so the label write-protection can work correctly no matter what label was found. Also use a new macro DKBAD to get at the dkbad field of the cpu_disklabel implementations that contain it. This too is for multi-disklabel architectures where the "bad" field can be inside a union. Use this macro as a means for a driver to check if an architecture supports dkbad constructs. Remove proto of bounds_check_with_label from all MD disklabel.h as it is in sys/disklabel.h. I have not been able to test the changes everywhere, if I break anything I apologize, and promise to fix it as soon as I become aware of it.
* Remove statics to ease DDB debuggingniklas1997-02-131-23/+23
|
* off-by-one in partition indexing, netbsd pr#3161, kleink@layla.inka.dederaadt1997-01-311-2/+2
|
* if error, b_resid = b_bcountderaadt1997-01-311-1/+2
|