summaryrefslogtreecommitdiff
path: root/sys/dev/ccd.c
AgeCommit message (Collapse)Author
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-04sprintf -> snprintf, plus check for overflow in device name.Kenneth R Westerback
ok deraadt@ millert@
2003-03-28In ccdsize(), check for CCDF_INITED before doing the ccdopen().Todd C. Miller
Adapted from NetBSD.
2002-11-10Use appropriate VM_MAP constants rather than hardcoded values inMiod Vallat
uvm_map_create() and uvm_km_suballoc().
2002-05-24Make sure that b_iodone handlers are called at splbio (and ↵Artur Grabowski
splassert(IPL_BIO) in all known callers, just to make sure).
2002-05-23protect biodone with splbio.Artur Grabowski
2002-03-14First round of __P removal in sysTodd C. Miller
2001-11-28zap some typedefs.Artur Grabowski
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)
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-09-19merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okMichael Shalayeff
2001-06-27zap old vmArtur Grabowski
2001-05-05Get rid of CLSIZE and all related stuff.Artur Grabowski
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.
1999-11-26vm_offset_t -> vaddr_tArtur Grabowski
1999-09-11s/vm_offset_t/vaddr_t/gMichael Shalayeff
1999-09-10roundup(foo, CLBYTES) -> clrnd(round_page(foo))Artur Grabowski
1999-02-26uvm compatArtur Grabowski
1998-10-03Add a "spoofonly" argument to readdisklabel() which will be used toTodd C. Miller
implement an ioctl to get a spoofed label even for disks that have a label on them.
1998-08-04don't rely on b_resid being signedTodd C. Miller
1998-03-10Play nicely with soft updates. Based on a patch from Kirk via FreeBSD--untestedTodd C. Miller
1998-02-06add FS_CCD, make ccd prefer such partitions. It still accespts FS_BSDFFS, ↵Theo de Raadt
and something will change about that soon
1998-01-25typoNiklas Hallqvist
1998-01-25Disable the new buffer policy for nowNiklas Hallqvist
1998-01-25Remove redundant splbio I added yesterdayNiklas Hallqvist
1998-01-24On the other hand... no need for recursive locks.Niklas Hallqvist
1998-01-24Well when MP comes.. we need locksNiklas Hallqvist
1998-01-24Protect allocation of ccd physmem of ccd interruptsNiklas Hallqvist
1998-01-24Eek, missing splbio, although splx was there. marging two "if"sNiklas Hallqvist
1998-01-21remove obsolete commentNiklas Hallqvist
1998-01-09Clear buffers on allocation, suggested by csapuntzNiklas Hallqvist
1998-01-07DOH! I managed to alloc 0 bytes always for the segment descriptors.Niklas Hallqvist
1997-12-15compile w/ DEBUGMichael Shalayeff
1997-12-12Make compile on systems where NBPG is not a constantNiklas Hallqvist
1997-11-26Optimized to perform well on small interleaves which makes the ccd driverNiklas Hallqvist
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.
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-08-08Change the bounds_check_with_label API to also take a cpu_disklabelNiklas Hallqvist
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.
1997-02-13Remove statics to ease DDB debuggingNiklas Hallqvist
1997-01-31off-by-one in partition indexing, netbsd pr#3161, kleink@layla.inka.deTheo de Raadt
1997-01-31if error, b_resid = b_bcountTheo de Raadt
1996-12-19netbsd fix to problem found by m4@nts.umn.eduTheo de Raadt
1996-05-10return an errorTheo de Raadt
1996-05-02no sys/cpu.hTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-19Fix according to the last changes.Michael Shalayeff
dev_conf.h deleted, longjmp proto changed.
1996-04-18NetBSD 960317 mergeNiklas Hallqvist
1996-03-02From NetBSD: sync with 960217 sourcesNiklas Hallqvist
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1996-01-12from netbsd;Theo de Raadt
New generic disk framework. Highlights: New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes. Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent. Several new functions for attaching and detaching disks, and handling metrics calculation. Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework. For usage and architectural details, see the forthcoming disk(9) manual page.
1995-12-14from netbsd:Theo de Raadt
Fix a race condition where if a process is asleep waiting on an exclusive lock of a ccd device while another process is unconfiguring that same device, the first process would never awaken (unless interrupted).