summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Re-add sync.marco2007-05-291-12/+19
| | | | ok tedu
* Sparc64 does not like 32 bit pointers. Bad me.marco2007-05-291-2/+4
| | | | | help tedu ok todd
* Make disk assembly smarter and add two qualifiers to it:marco2007-05-281-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 theremarco2007-05-271-3/+9
| | | | | | is no media in them. ok tedu
* better spacingmarco2007-05-261-5/+8
|
* get size from disklabel, d_psize will remain "swap only"tedu2007-05-261-13/+15
| | | | ok marco
* Oops reintroduce check for SR_MAGIC to ensure that we care about metadata;marco2007-05-261-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 notmarco2007-05-261-14/+97
| | | | order and roams volumes yet but is useful enough in most environments.
* create separate function to validate metadata.marco2007-05-241-89/+136
| | | | remove seeding of checksums.
* Remove all vnode dependencies so that we can bootstrap softraid volumes.marco2007-05-231-188/+94
| | | | | | | | | | | 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
* Add initial bits for assembly at boot time.marco2007-05-121-2/+106
|
* Assemble disk from user supplied metadata.marco2007-05-081-76/+254
| | | | | Verify all metada to make sure it is correct; this includes sorting the chunks Add 2 new functions for printing uuid and metadata.
* Make meta_read use the metadata memory that is provided in the discipline.marco2007-05-021-13/+8
|
* Add a function to free all discipline members and the discipline itself.marco2007-05-021-12/+24
| | | | Move allocation of "in memory copy" of metadata into the new function.
* Refactor metadata code; this is the first step to be able to bringupmarco2007-05-011-160/+247
| | | | | | | devices at boot time. Reset the metadata versions to 1 until this solidifies we wont change these.
* ';;' doesnt work on older gcc..todd2007-04-301-2/+2
| | | | | | i.e. my sparc and vax and m68k couldn't build this problem found by me, fix by pedro ok marco@
* Add initial test for existing metadata on chunks.marco2007-04-231-4/+72
|
* Add interesting runtime stats.marco2007-04-231-1/+47
|
* Keep track of coerced chunk sizes.marco2007-04-231-6/+6
|
* Calculate metadata checksums.marco2007-04-221-4/+27
| | | | Add chunks to debug prints.
* Add more debug output for metadata.marco2007-04-221-7/+33
| | | | Spacing as well.
* Don't use SBLOCK_UFS1. Don't call it SKIP either.marco2007-04-221-4/+4
| | | | Pompted by deraadt
* Skip past SBLOCK_UFS1 to make sure that metadata does not destroy anythingmarco2007-04-221-7/+8
| | | | | | filesystem related. pointed out by deraadt
* Make sure we don't write too much metadata.marco2007-04-211-4/+11
|
* Remove big endian in metadata; prompted by deraadt.marco2007-04-211-6/+1
| | | | Align metadata to 64 bit; from deraadt.
* Account for mbr and partition table when writing meta data.marco2007-04-211-4/+5
| | | | Error report by Johan Mson Lindman <tybollt@solace.miun.se>
* Add volumes to sensors.marco2007-04-211-2/+82
|
* Save volume and chunk metadata as well.marco2007-04-191-4/+40
|
* Add initial metadata write function and hook it up.marco2007-04-191-5/+129
|
* Silly tedu, partitions are measured in blocks not in bytes.marco2007-04-191-2/+2
|
* Whenever there are mutliple outstanding IOs a chunk can transtion multiplemarco2007-04-171-1/+6
| | | | | | times to the same state. Ignore that. Tested by thib@
* Shuffle ccb contents and clean up a loopmarco2007-04-171-19/+21
|