summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
AgeCommit message (Collapse)Author
2008-06-12wrap definitions for softraid crypto "ifdef CRYPTO". Suggested by djmHans-Joerg Hoexer
2008-06-12Get mask keying for on-disk keys from user space and keep a "hint" for keyHans-Joerg Hoexer
generation used by user space in the meta data. Actually use the masking key for encryption and decryption of on-disk key at run time. ok djm marco
2008-06-12Add delete volume functionality.Marco Peereboom
discussed with krw, kettenis & drahn ok hshoexer
2008-06-11Move first pieces of crypto softraid into the tree. Still totallyHans-Joerg Hoexer
disabled, of course, and still work in progress. help by djm@, ok marco@
2008-02-22Propper encryption of on-disk-keys, prodded/suggest by tedu@ and djm@Hans-Joerg Hoexer
also use aes to generate proppper IVs ok marco@
2008-02-17Add "in blocks" to disk size discriptors so that I don't have to readMarco Peereboom
code single time I look at it.
2008-02-17Add propper key encryption.Hans-Joerg Hoexer
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-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-26Remove duplicate protosMarco Peereboom
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-24Add IO path to RAID 0 discipline.Marco Peereboom
2008-01-19Add initial scaffold for RAID 0. No IO just yet.Marco Peereboom
Much prodding todd
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-26rename RAID C to RAID CRYPTO. makes marco happierTed Unangst
2007-06-06correct format strings for large types; ok marcoTheo de Raadt
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-02Add optional metadata element. This will be needed in the future forMarco Peereboom
certain disciplines.
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-05-31Fix redundancy for RAID 1. Now one can pull a disk and continue running.Marco Peereboom
help from drahn
2007-05-31correct misspelled mail address in copyright statement, marco@ okAlexander von Gernler
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-29Add shutdownhook for all disciplinesMarco Peereboom
2007-05-29Re-add sync.Marco Peereboom
ok tedu
2007-05-28Make disk assembly smarter and add two qualifiers to it:Marco Peereboom
1) noautoassemble; when set the softraid volume will not be assembled during autoconf. 2) force; when set it will overwrite metadata on disk While writing this I ran into 3 bugs that were fixed along the way 1) bcopy in sr_read_meta was copying data to the wrong pointer 2) in sr_read_meta the wrong metadata was coppied into the chunk 3) sr_free_discipline was freing a pointer that wasn't malloc'd ok dlg
2007-05-26Assemble disks at boot time. This is not complete yet since it does notMarco Peereboom
order and roams volumes yet but is useful enough in most environments.
2007-05-24create separate function to validate metadata.Marco Peereboom
remove seeding of checksums.
2007-05-23Remove all vnode dependencies so that we can bootstrap softraid volumes.Marco Peereboom
Code from tedu. Replace all kernel string magic with dev_t passed in from bioctl. Suggestion from beck and tedu. Help from miod. Fix chunk crc. ok tedu
2007-05-08Assemble disk from user supplied metadata.Marco Peereboom
Verify all metada to make sure it is correct; this includes sorting the chunks Add 2 new functions for printing uuid and metadata.
2007-05-01Refactor metadata code; this is the first step to be able to bringupMarco Peereboom
devices at boot time. Reset the metadata versions to 1 until this solidifies we wont change these.
2007-04-23Add interesting runtime stats.Marco Peereboom
2007-04-22Add more debug output for metadata.Marco Peereboom
Spacing as well.
2007-04-22Don't use SBLOCK_UFS1. Don't call it SKIP either.Marco Peereboom
Pompted by deraadt
2007-04-22Skip past SBLOCK_UFS1 to make sure that metadata does not destroy anythingMarco Peereboom
filesystem related. pointed out by deraadt
2007-04-21Remove big endian in metadata; prompted by deraadt.Marco Peereboom
Align metadata to 64 bit; from deraadt.
2007-04-21Add volumes to sensors.Marco Peereboom
2007-04-19Add initial metadata write function and hook it up.Marco Peereboom
2007-04-14shave some blocks off each chunk to make sure disklabel doesn't get eatenTed Unangst
this can also be used for softraid metadata ok marco
2007-04-12Add failure statistics per workunit.Marco Peereboom
Remove BIOC_SFAILED; we'll only use BIOC_SOFFLINE. Call state change in interrupt handler when a chunk fails.
2007-04-11Add infrastructure to run with multiple openings.Marco Peereboom
2007-03-30Make volume state transitions workMarco Peereboom
2007-03-27First stab at state transition code for volumes and chunks.Marco Peereboom
Minor cleanup as well. prodded by jordan