summaryrefslogtreecommitdiff
path: root/sys/dev/softraid.c
AgeCommit message (Collapse)Author
2008-04-02fix bad printf if metadata clearing failedMartin Reindl
from Rainer Giedat ok marco@
2008-02-15Add myself to the copyrights, ok marco@Chris Kuethe
2008-02-14Actually implement the crypto.Chris Kuethe
ok tedu@ marco@
2008-02-07Add optional metadata memebers.Marco Peereboom
Randomize Crypto password and add salt array. Add mock key encryption functions.
2008-02-05Shave off a few more bytes by moving IO collision detection into a genericMarco Peereboom
fucntion. Fix bug in the crypto code that could casuse data corruption as a bonus, bad cut & past tedu!
2008-02-05Add strip size to debug print.Marco Peereboom
2008-02-05Create a generic function to validate IO instead of copying and pastingMarco Peereboom
same code in all disciplines. This shaves of a few bytes. crypto 3185 -> 2690 raid 0 2843 -> 2378 raid 1 3474 -> 2689
2008-02-03There is no such thing as RAIDCRYPTO so rename to CRYPTOMarco Peereboom
2008-01-29Improve performance dramatically by preventing severeal context switches.Marco Peereboom
Decrypt only once on entry or exit instead of on in and out regardless of direction. There is still room for improvement but this is the first stab. Tested by many ok tedu
2008-01-24Create chunk and state transition functions for RAID 0.Marco Peereboom
Move RAID 1 chunk and state transition functions into proper file. Let Crypto use RAID 1 chunk and state transition functions for now but this needs fixing.
2008-01-24Bring softraid into the world of 16 byte commands; this allows for > 2TB disksMarco Peereboom
Fix bioctl size output which was off by *512; diagnosed by otto
2008-01-24KNFMarco Peereboom
2008-01-20debug kruftMarco Peereboom
2008-01-19Add initial scaffold for RAID 0. No IO just yet.Marco Peereboom
Much prodding todd
2008-01-19Remove printf that doesn't make sense.Marco Peereboom
2008-01-05return with ENOTTY instead of EINVAL for unknown ioctl requests.Brad Smith
ok krw@ deraadt@ dlg@
2007-11-27also move softraid raid1 into own file, ok marcoTed Unangst
2007-11-27split crypto functions out into their own file, so softraid.c is not suchTed Unangst
a jungle. ok deraadt marco
2007-11-26Just CRYPTO; RAID CRYPTO doesn't mean anything.Marco Peereboom
2007-11-26rename RAID C to RAID CRYPTO. makes marco happierTed Unangst
2007-11-16use arc4random_bytes() instead of multiple arc4random() calls;Damien Miller
ok deraadt@ dlg@ henric@ mcbride@
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-08more M_ZERO changesGilles Chehade
ok pyr@ and krw@
2007-06-24rework sensor tasks to use the kernels generic workq rather than a specialDavid Gwynne
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
2007-06-06correct format strings for large types; ok marcoTheo de Raadt
2007-06-05Shuffle calculation of physical block so that bounds checking is not off byMarco Peereboom
48 blocks (metadata + metdata offset). Found by drahn. Fix panic message while in the same area. Help from otto who wrote a diff that worked around the issue. ok deraadt
2007-06-05consistently use one variable instead of deriving it repeatedlyTodd T. Fries
from and ok marco@
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-04use S_IFCHR instead of S_IFBLK to shut the SCSI midlayer up duringMarco Peereboom
autoconf. ok drahn@
2007-06-03put raidc inside ifdef CRYPTO, since it won't work without itTed Unangst
2007-06-03shuffle the raid 1 specific functions to be all together and closerTed Unangst
to the bottom, after common functions. ok marco
2007-06-03virtual device drivers tend not to need machine/bus.h. also importantTheo de Raadt
because mvme68k (and perhaps others) do not have it. showed it to dlg who just shook his head
2007-06-03During autoassemble get the actual raid level instead of always 1.Marco Peereboom
Sprinkle debug throughout crypto discipline. Various knf, bad tedu!
2007-06-02Disable crypto until we figure out proper key management and other stuffMarco Peereboom
only tedu understands.
2007-06-02Fix collision by not adding data length but blocks instead.Marco Peereboom
Some clean up.
2007-06-02Add optional metadata element. This will be needed in the future forMarco Peereboom
certain disciplines.
2007-06-02Redo the sense mechanism to become autosense instead of request sense.Marco Peereboom
General cleanup in the sense code. This was prompted by grunk. He found that out of bounds conditions were knocking disks offline (which was obviously a bug).
2007-06-01check return value of findblkmajor; this fixes a crash on vax during boot.Marco Peereboom
add check for failed geteblk. exclude rx during boot probe. help miod todd ok todd
2007-06-01Add additional flag to indicate that we have a metdadata io pending; thisMarco Peereboom
way if we shut down the system we can make sure that it makes it onto disk before scsibus detach. ok dlg
2007-06-01Check return code for resource allocation.Marco Peereboom
prompted by tedu
2007-06-01save metdata in context using dlg and tedu's shiny new workq api.Marco Peereboom
detect stale metadata during bringup.
2007-05-31Redo the syncer to be a little smarter on interaction while shutting downMarco Peereboom
the system help and ok tedu
2007-05-31Fix redundancy for RAID 1. Now one can pull a disk and continue running.Marco Peereboom
help from drahn
2007-05-31- zap unnecessary rv variableAlexander von Gernler
- sprinkle an XXX to remember that we have to supply a serious key later ok tedu@
2007-05-30Make sure that if there are staggered syncs that they complete successfullyMarco Peereboom
before detaching the scsi bus. ok dlg
2007-05-30Remove ugly print and don't panic when doing a partial bringup.Marco Peereboom
2007-05-30Sync after the metadata is saved.Marco Peereboom
2007-05-30add basic support for a crypto(9) backed raid C disciplineTed Unangst
ok marco
2007-05-29Add dirty bit for volumesMarco Peereboom
2007-05-29sprinkle some SMALL_KERNEL so that it can run on boot media.Marco Peereboom
ok todd