summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add optional metadata memebers.marco2008-02-071-9/+100
| | | | | Randomize Crypto password and add salt array. Add mock key encryption functions.
* Shave off a few more bytes by moving IO collision detection into a genericmarco2008-02-051-1/+33
| | | | | fucntion. Fix bug in the crypto code that could casuse data corruption as a bonus, bad cut & past tedu!
* Add strip size to debug print.marco2008-02-051-1/+2
|
* Create a generic function to validate IO instead of copying and pastingmarco2008-02-051-1/+58
| | | | | | | | same code in all disciplines. This shaves of a few bytes. crypto 3185 -> 2690 raid 0 2843 -> 2378 raid 1 3474 -> 2689
* There is no such thing as RAIDCRYPTO so rename to CRYPTOmarco2008-02-031-3/+3
|
* Improve performance dramatically by preventing severeal context switches.marco2008-01-291-2/+3
| | | | | | | | | 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
* Create chunk and state transition functions for RAID 0.marco2008-01-241-204/+8
| | | | | | 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.
* Bring softraid into the world of 16 byte commands; this allows for > 2TB disksmarco2008-01-241-11/+28
| | | | Fix bioctl size output which was off by *512; diagnosed by otto
* KNFmarco2008-01-241-4/+5
|
* debug kruftmarco2008-01-201-7/+1
|
* Add initial scaffold for RAID 0. No IO just yet.marco2008-01-191-11/+78
| | | | Much prodding todd
* Remove printf that doesn't make sense.marco2008-01-191-2/+1
|
* return with ENOTTY instead of EINVAL for unknown ioctl requests.brad2008-01-051-2/+2
| | | | ok krw@ deraadt@ dlg@
* also move softraid raid1 into own file, ok marcotedu2007-11-271-381/+1
|
* split crypto functions out into their own file, so softraid.c is not suchtedu2007-11-271-449/+4
| | | | a jungle. ok deraadt marco
* Just CRYPTO; RAID CRYPTO doesn't mean anything.marco2007-11-261-2/+2
|
* rename RAID C to RAID CRYPTO. makes marco happiertedu2007-11-261-6/+6
|
* use arc4random_bytes() instead of multiple arc4random() calls;djm2007-11-161-5/+2
| | | | ok deraadt@ dlg@ henric@ mcbride@
* KNFgilles2007-09-111-13/+15
| | | | prompted and "much better" by marco@, ok pyr@
* more M_ZERO changesgilles2007-09-081-26/+13
| | | | ok pyr@ and krw@
* rework sensor tasks to use the kernels generic workq rather than a specialdlg2007-06-241-2/+2
| | | | | | | | | 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@
* correct format strings for large types; ok marcoderaadt2007-06-061-29/+27
|
* Shuffle calculation of physical block so that bounds checking is not off bymarco2007-06-051-13/+16
| | | | | | | | | 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
* consistently use one variable instead of deriving it repeatedlytodd2007-06-051-2/+2
| | | | from and ok marco@
* use six new macros to access & store the 48-bit disklabel fields relatedderaadt2007-06-051-2/+2
| | | | | to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
* use S_IFCHR instead of S_IFBLK to shut the SCSI midlayer up duringmarco2007-06-041-7/+13
| | | | | | autoconf. ok drahn@
* put raidc inside ifdef CRYPTO, since it won't work without ittedu2007-06-031-1/+5
|
* shuffle the raid 1 specific functions to be all together and closertedu2007-06-031-376/+376
| | | | to the bottom, after common functions. ok marco
* virtual device drivers tend not to need machine/bus.h. also importantderaadt2007-06-031-3/+1
| | | | | because mvme68k (and perhaps others) do not have it. showed it to dlg who just shook his head
* During autoassemble get the actual raid level instead of always 1.marco2007-06-031-13/+35
| | | | | Sprinkle debug throughout crypto discipline. Various knf, bad tedu!
* Disable crypto until we figure out proper key management and other stuffmarco2007-06-021-1/+3
| | | | only tedu understands.
* Fix collision by not adding data length but blocks instead.marco2007-06-021-22/+21
| | | | Some clean up.
* Add optional metadata element. This will be needed in the future formarco2007-06-021-1/+6
| | | | certain disciplines.
* Redo the sense mechanism to become autosense instead of request sense.marco2007-06-021-36/+22
| | | | | | | 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).
* check return value of findblkmajor; this fixes a crash on vax during boot.marco2007-06-011-2/+8
| | | | | | | | add check for failed geteblk. exclude rx during boot probe. help miod todd ok todd
* Add additional flag to indicate that we have a metdadata io pending; thismarco2007-06-011-3/+12
| | | | | | | way if we shut down the system we can make sure that it makes it onto disk before scsibus detach. ok dlg
* Check return code for resource allocation.marco2007-06-011-6/+12
| | | | prompted by tedu
* save metdata in context using dlg and tedu's shiny new workq api.marco2007-06-011-5/+27
| | | | detect stale metadata during bringup.
* Redo the syncer to be a little smarter on interaction while shutting downmarco2007-05-311-5/+16
| | | | | | the system help and ok tedu
* Fix redundancy for RAID 1. Now one can pull a disk and continue running.marco2007-05-311-18/+98
| | | | help from drahn
* - zap unnecessary rv variablegrunk2007-05-311-5/+5
| | | | | | - sprinkle an XXX to remember that we have to supply a serious key later ok tedu@
* Make sure that if there are staggered syncs that they complete successfullymarco2007-05-301-1/+7
| | | | | | before detaching the scsi bus. ok dlg
* Remove ugly print and don't panic when doing a partial bringup.marco2007-05-301-5/+4
|
* Sync after the metadata is saved.marco2007-05-301-3/+13
|
* add basic support for a crypto(9) backed raid C disciplinetedu2007-05-301-41/+453
| | | | ok marco
* Add dirty bit for volumesmarco2007-05-291-6/+12
|
* sprinkle some SMALL_KERNEL so that it can run on boot media.marco2007-05-291-6/+16
| | | | ok todd
* Add shutdownhook for all disciplinesmarco2007-05-291-15/+65
|
* Kill stale commentmarco2007-05-291-2/+1
|
* Fix race in sync code.marco2007-05-291-7/+10
|