summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* shave some blocks off each chunk to make sure disklabel doesn't get eatentedu2007-04-141-4/+6
| | | | | this can also be used for softraid metadata ok marco
* Add degraded raid 1 io path codemarco2007-04-141-29/+69
|
* Add failure statistics per workunit.marco2007-04-121-31/+28
| | | | | Remove BIOC_SFAILED; we'll only use BIOC_SOFFLINE. Call state change in interrupt handler when a chunk fails.
* Remove stale comment.marco2007-04-111-2/+2
|
* Fix thinko where vol was used instead of i (scsibus).marco2007-04-111-3/+3
|
* Add infrastructure to run with multiple openings.marco2007-04-111-15/+105
|
* Move offline state up in priority over degraded.marco2007-03-311-11/+13
| | | | Various cleanups in state functions.
* Fix bio disk lookup and make it more paranoia with provided parameters.marco2007-03-311-7/+9
| | | | Clean up a little while there.
* Spacing and a stale comment.marco2007-03-311-3/+1
|
* Make volume state transitions workmarco2007-03-301-12/+55
|
* Calculate proper offset in partition table.marco2007-03-301-5/+6
|
* First stab at state transition code for volumes and chunks.marco2007-03-271-20/+244
| | | | | | Minor cleanup as well. prodded by jordan
* typos in commentstedu2007-03-261-3/+3
|
* fix the vnode lockingtedu2007-03-241-8/+12
| | | | ok marco pedro
* Hook up sd ioctl.marco2007-03-201-2/+2
|
* Fake out target id for bioc_disk.marco2007-03-201-1/+2
|
* the autoconf glue funcs (match/attach/etc) are only used inside softraid.c,dlg2007-03-191-18/+20
| | | | | | | | | so prototype them there rather than in softraidvar.h. shuffle these funcs a little bit while here to make it look more like everything else. ok marco@
* Fix keyword expansion.mk2007-03-191-1/+1
| | | | ok marco