| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Make sure some possibly uninitialized local variables are assigned correct | 2008-09-22 | 1 | -2/+2 | ||
| | | | | | | | values in all cases. ok marco@ | |||||
| * | Add curproc to ioctl call. | 2008-07-21 | 1 | -4/+4 | ||
| | | | | | Noticed by todd, proded by miod. | |||||
| * | fill in variant and version components of the UUID | 2008-07-20 | 1 | -7/+17 | ||
| | | | | | pretty-print the UUID in RFC4122 form | |||||
| * | Full rewrite of metadata handling. This fixes power failures and crashes | 2008-07-19 | 1 | -1093/+1241 | ||
| | | | | | | | | | | | | | | | | | that caused illegal checksums. The new metadata code is more or less ready to deal with other vendor's metadata formats. While here clean up the name space. Fix thib's pool mess by adding removing bad flags in interrupt context. tested on macppc, amd64, i386, sparc64 & hppa sparc64 has issues with crypto however those do not seem to be softraid specific. help from okan@ ckuethe@ Will Backman and others | |||||
| * | use pools for the uio and iovec allocations in sr_crypto_getcryptop() | 2008-06-25 | 1 | -1/+21 | ||
| | | | | | | | instead of malloc; OK hshoexer@ and macro@ | |||||
| * | Provide a status field for operations on the bc_opaque data. Now we're | 2008-06-14 | 1 | -1/+9 | ||
| | | | | | | | | able to distinguish cleanly an failing ioctl (ie. return value -1) from trying to retrieve a KDF hint from a not yet initialized volume. ok marco djm | |||||
| * | Update bioctl(8) and softraid(4) to recent changes and enable softraid | 2008-06-14 | 1 | -3/+1 | ||
| | | | | | | | crypto. It's still considered experimental! ok djm marco | |||||
| * | When assembling an already initialized crytpo softraid, correctly copy in | 2008-06-13 | 1 | -4/+6 | ||
| | | | | | | | | | | mask key from userland. Thus, modify sr_crypto_get_kdf() do correclty handle copying kdf hint and/or mask key. While there, remove superflous sr_read_meta(). ok marco djm | |||||
| * | make sure to check that a crypto volume is not yet assembled when | 2008-06-12 | 1 | -11/+10 | ||
| | | | | | | | | | retrieving the kdf blobb. Pointed out by marco. while there, use %lld instead of %d when printing b_blkno, which daddr64_t. ok marco | |||||
| * | Clead discipline pointer after delete. Found by hshoexer | 2008-06-12 | 1 | -3/+9 | ||
| | | ||||||
| * | Get mask keying for on-disk keys from user space and keep a "hint" for key | 2008-06-12 | 1 | -7/+31 | ||
| | | | | | | | | | | 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 | |||||
| * | Be more paranoid before disestablishing hook | 2008-06-12 | 1 | -2/+3 | ||
| | | | | | ok hshoexer | |||||
| * | Add delete volume functionality. | 2008-06-12 | 1 | -1/+45 | ||
| | | | | | | discussed with krw, kettenis & drahn ok hshoexer | |||||
| * | Move first pieces of crypto softraid into the tree. Still totally | 2008-06-11 | 1 | -6/+14 | ||
| | | | | | | | disabled, of course, and still work in progress. help by djm@, ok marco@ | |||||
| * | rename arc4random_bytes => arc4random_buf to match libc's nicer name; | 2008-06-09 | 1 | -2/+2 | ||
| | | | | | ok deraadt@ | |||||
| * | fix bad printf if metadata clearing failed | 2008-04-02 | 1 | -2/+2 | ||
| | | | | | | | from Rainer Giedat ok marco@ | |||||
| * | Add myself to the copyrights, ok marco@ | 2008-02-15 | 1 | -1/+2 | ||
| | | ||||||
| * | Actually implement the crypto. | 2008-02-14 | 1 | -28/+6 | ||
| | | | | | ok tedu@ marco@ | |||||
| * | Add optional metadata memebers. | 2008-02-07 | 1 | -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 generic | 2008-02-05 | 1 | -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. | 2008-02-05 | 1 | -1/+2 | ||
| | | ||||||
| * | Create a generic function to validate IO instead of copying and pasting | 2008-02-05 | 1 | -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 CRYPTO | 2008-02-03 | 1 | -3/+3 | ||
| | | ||||||
| * | Improve performance dramatically by preventing severeal context switches. | 2008-01-29 | 1 | -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. | 2008-01-24 | 1 | -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 disks | 2008-01-24 | 1 | -11/+28 | ||
| | | | | | Fix bioctl size output which was off by *512; diagnosed by otto | |||||
| * | KNF | 2008-01-24 | 1 | -4/+5 | ||
| | | ||||||
| * | debug kruft | 2008-01-20 | 1 | -7/+1 | ||
| | | ||||||
| * | Add initial scaffold for RAID 0. No IO just yet. | 2008-01-19 | 1 | -11/+78 | ||
| | | | | | Much prodding todd | |||||
| * | Remove printf that doesn't make sense. | 2008-01-19 | 1 | -2/+1 | ||
| | | ||||||
| * | return with ENOTTY instead of EINVAL for unknown ioctl requests. | 2008-01-05 | 1 | -2/+2 | ||
| | | | | | ok krw@ deraadt@ dlg@ | |||||
| * | also move softraid raid1 into own file, ok marco | 2007-11-27 | 1 | -381/+1 | ||
| | | ||||||
| * | split crypto functions out into their own file, so softraid.c is not such | 2007-11-27 | 1 | -449/+4 | ||
| | | | | | a jungle. ok deraadt marco | |||||
| * | Just CRYPTO; RAID CRYPTO doesn't mean anything. | 2007-11-26 | 1 | -2/+2 | ||
| | | ||||||
| * | rename RAID C to RAID CRYPTO. makes marco happier | 2007-11-26 | 1 | -6/+6 | ||
| | | ||||||
| * | use arc4random_bytes() instead of multiple arc4random() calls; | 2007-11-16 | 1 | -5/+2 | ||
| | | | | | ok deraadt@ dlg@ henric@ mcbride@ | |||||
| * | KNF | 2007-09-11 | 1 | -13/+15 | ||
| | | | | | prompted and "much better" by marco@, ok pyr@ | |||||
| * | more M_ZERO changes | 2007-09-08 | 1 | -26/+13 | ||
| | | | | | ok pyr@ and krw@ | |||||
| * | rework sensor tasks to use the kernels generic workq rather than a special | 2007-06-24 | 1 | -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 marco | 2007-06-06 | 1 | -29/+27 | ||
| | | ||||||
| * | Shuffle calculation of physical block so that bounds checking is not off by | 2007-06-05 | 1 | -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 repeatedly | 2007-06-05 | 1 | -2/+2 | ||
| | | | | | from and ok marco@ | |||||
| * | use six new macros to access & store the 48-bit disklabel fields related | 2007-06-05 | 1 | -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 during | 2007-06-04 | 1 | -7/+13 | ||
| | | | | | | | autoconf. ok drahn@ | |||||
| * | put raidc inside ifdef CRYPTO, since it won't work without it | 2007-06-03 | 1 | -1/+5 | ||
| | | ||||||
| * | shuffle the raid 1 specific functions to be all together and closer | 2007-06-03 | 1 | -376/+376 | ||
| | | | | | to the bottom, after common functions. ok marco | |||||
| * | virtual device drivers tend not to need machine/bus.h. also important | 2007-06-03 | 1 | -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. | 2007-06-03 | 1 | -13/+35 | ||
| | | | | | | Sprinkle debug throughout crypto discipline. Various knf, bad tedu! | |||||
| * | Disable crypto until we figure out proper key management and other stuff | 2007-06-02 | 1 | -1/+3 | ||
| | | | | | only tedu understands. | |||||
| * | Fix collision by not adding data length but blocks instead. | 2007-06-02 | 1 | -22/+21 | ||
| | | | | | Some clean up. | |||||
