summaryrefslogtreecommitdiff
path: root/sys/dev/ccd.c
AgeCommit message (Collapse)Author
2008-07-01Remove clauses 3 and 4 from BSD license owned by mickey, niklas, and NetBSD.Ray Lai
OK niklas, mickey, deraadt.
2008-06-15Don't bypass partition bounds check for RAW_PART. We now guarantee thatKenneth R Westerback
RAW_PART will always be 0 -> disksize, so the bounds check will always pass for i/o's to valid addresses. Now the i/o will be properly truncated if it goes past the end of the device. This prevents various adverse impacts of issuing i/o's for data past the end of the device. Repeatedly requested by todd@. ok weingart@ deraadt@
2008-06-14A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)Michael Knudsen
conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking.
2007-09-12There is no such word as `detatch'.Michael Knudsen
ok mglocker
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-08more M_ZERO changesGilles Chehade
ok pyr@ and krw@
2007-09-01fix a use after free case.Thordur I. Bjornsson
From Bret Lambert via deraadt@; ok miod@
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-08all drivers should spoof version 1 labelsTheo de Raadt
2007-06-07in OpenBSD as all old BSD unix, RAW_PART always starts at 0, so noTheo de Raadt
need for special case code; ok krw
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-01Don't initialize d_partitions[RAW_DISK] just before callingKenneth R Westerback
readdisklabel(), since all readdisklabel()'s do that already. ok deraadt@
2007-04-28CCDLABELDEV/ect and RAIDLABELDEV/etc join other no-op defines in theKenneth R Westerback
trashbin of history, replaced by DISKLABELDEV/etc. No change to .o files except for __line__. ok jsg@
2007-04-18Remove the ``new i/o'' code. It has never worked well, noone has stepped upMiod Vallat
to fix it, and it goes in the way of good changes pedro is brewing. No functional change, tested todd@ millert@
2007-04-06use rwlocks instead of hand-rolled. make the softc private parts private.Ted Unangst
this means making ccdconfig "SMALL" to turn off the kvm groveling nonsense ok deraadt millert pedro todd
2007-03-30accept interleave of 0; pr 5431, my patch matches the author'sTheo de Raadt
2006-11-29The historical reasons to spoof the 'c' partition of ccdN as being FFSKenneth R Westerback
are no longer operative. Spoof the label created for ccdN with an UNUSED 'c' partition like every other device's spoofed label. Problem pointed out by millert@ in relation to pending disklabel(8) changes. ok mickey@ deraadt@
2006-08-12Rather than using cs->sc_size to set d_secperunit and then RAW_PART'sKenneth R Westerback
p_size, use d_secperunit to set RAW_PART's p_size. This is more consistant with other usage and makes the intent clearer. This should be a no-op.
2006-07-20otto sez there is no need to check for upper bound for the ileave. indeedMichael Shalayeff
2006-07-20do some range checking on ccio passed from user; pt out by ramrunner@gmail.comMichael Shalayeff
2006-01-09Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.Pedro Martelletto
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
2005-09-13make a macro instead of #ifdef DEBUG if() printf() #endif; no functional changeMichael Shalayeff
2005-05-22remove "0x" in front of %p in printfs.Artur Grabowski
eyeballed by krw@
2005-05-12ANSIfy, some KNF and zap a little bit of whitespace.Niall O'Higgins
No binary changes. ok mickey@
2005-05-12Add a bzero() after malloc() when allocating component info in ccdinit().Niall O'Higgins
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@
2005-03-30init pool after we allocate softc array in case malloc failsMichael Shalayeff
2005-03-25calculate the rpm for a disklabel; implement new io discipline for mirror; ↵Michael Shalayeff
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 );
2005-03-12initialise min arg to uvm_km_suballoc; not currently enabled code pathMichael Shalayeff
2005-02-24fix a buffer-done race that makes mirroring work now;Michael Shalayeff
use pool instead of malloc/free and this fixes new buffer mode; implement DIOCGPDINFO for disklabel -d; tested by henning@ millert@ fries@
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-01-09remove uvm_extern.hBrad Smith
tested on alpha, i386, powerpc, sparc64, m68k. ok miod@
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