Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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. | |||||
* | Add optional metadata element. This will be needed in the future for | 2007-06-02 | 1 | -1/+6 | ||
| | | | | certain disciplines. | |||||
* | Redo the sense mechanism to become autosense instead of request sense. | 2007-06-02 | 1 | -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. | 2007-06-01 | 1 | -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; this | 2007-06-01 | 1 | -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. | 2007-06-01 | 1 | -6/+12 | ||
| | | | | prompted by tedu | |||||
* | save metdata in context using dlg and tedu's shiny new workq api. | 2007-06-01 | 1 | -5/+27 | ||
| | | | | detect stale metadata during bringup. | |||||
* | Redo the syncer to be a little smarter on interaction while shutting down | 2007-05-31 | 1 | -5/+16 | ||
| | | | | | | the system help and ok tedu | |||||
* | Fix redundancy for RAID 1. Now one can pull a disk and continue running. | 2007-05-31 | 1 | -18/+98 | ||
| | | | | help from drahn | |||||
* | - zap unnecessary rv variable | 2007-05-31 | 1 | -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 successfully | 2007-05-30 | 1 | -1/+7 | ||
| | | | | | | before detaching the scsi bus. ok dlg | |||||
* | Remove ugly print and don't panic when doing a partial bringup. | 2007-05-30 | 1 | -5/+4 | ||
| | ||||||
* | Sync after the metadata is saved. | 2007-05-30 | 1 | -3/+13 | ||
| | ||||||
* | add basic support for a crypto(9) backed raid C discipline | 2007-05-30 | 1 | -41/+453 | ||
| | | | | ok marco | |||||
* | Add dirty bit for volumes | 2007-05-29 | 1 | -6/+12 | ||
| | ||||||
* | sprinkle some SMALL_KERNEL so that it can run on boot media. | 2007-05-29 | 1 | -6/+16 | ||
| | | | | ok todd | |||||
* | Add shutdownhook for all disciplines | 2007-05-29 | 1 | -15/+65 | ||
| | ||||||
* | Kill stale comment | 2007-05-29 | 1 | -2/+1 | ||
| | ||||||
* | Fix race in sync code. | 2007-05-29 | 1 | -7/+10 | ||
| | ||||||
* | Re-add sync. | 2007-05-29 | 1 | -12/+19 | ||
| | | | | ok tedu | |||||
* | Sparc64 does not like 32 bit pointers. Bad me. | 2007-05-29 | 1 | -2/+4 | ||
| | | | | | help tedu ok todd | |||||
* | Make disk assembly smarter and add two qualifiers to it: | 2007-05-28 | 1 | -18/+123 | ||
| | | | | | | | | | | | | | 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 | |||||
* | hack to not open cd & fd devices since they complain at boot time when there | 2007-05-27 | 1 | -3/+9 | ||
| | | | | | | is no media in them. ok tedu | |||||
* | better spacing | 2007-05-26 | 1 | -5/+8 | ||
| | ||||||
* | get size from disklabel, d_psize will remain "swap only" | 2007-05-26 | 1 | -13/+15 | ||
| | | | | ok marco | |||||
* | Oops reintroduce check for SR_MAGIC to ensure that we care about metadata; | 2007-05-26 | 1 | -2/+5 | ||
| | | | | not doing so resulted in a partial bringup of a volume that was being created; | |||||
* | Assemble disks at boot time. This is not complete yet since it does not | 2007-05-26 | 1 | -14/+97 | ||
| | | | | order and roams volumes yet but is useful enough in most environments. |