summaryrefslogtreecommitdiff
path: root/sys/dev/softraid.c
AgeCommit message (Collapse)Author
2009-12-31Add support for key disks. This allows a crypto volume to be constructedJoel Sing
without using a passphrase - instead the encryption mask key is stored on the specified key disk partition (ideally being one on a removable device). This also enables automatic assembly of crypto volumes at boot time. ok marco@
2009-12-15Allow auto assemble flag to be toggled for disciplines that support it.Joel Sing
"Love it!" marco@
2009-12-15Factor out discipline specific create/assemble code.Joel Sing
"in, in, in!" marco@
2009-12-15Explicitly lock the vnode when deleting a volume. This avoids a potentialJoel Sing
panic that is caused by vnode aliasing, where checkalias() switches the vnode ops for our vnode. This means that we end up using ufs unlocking rather than specfs unlocking (which is a no-op). ok marco@
2009-12-07Cleanup discipline initialisation.Joel Sing
ok marco@
2009-12-07Define discipline capabilities using a set of flags.Joel Sing
"shiny!!" marco@
2009-11-24Allow the passphrase to be changed on softraid crypto volumes. Ensure thatJoel Sing
you backup your data and lock up your pets prior to using this. Tested by todd@ ok marco@
2009-11-23Improve discipline specific ioctl framework and attach to softraid ioctl.Joel Sing
ok marco@
2009-11-22Add a framework for discipline specific ioctls.Joel Sing
ok marco@
2009-11-22Ensure that chunks are not already in use when creating a volume.Joel Sing
ok marco@
2009-11-15Fix memory leak in error case. Found by Parfait.Joel Sing
ok marco@ deraadt@
2009-10-29When probing devices at boot, compare against the full device driver nameJoel Sing
rather than the start of the device name. Also, be inclusive with devices probed rather than exclusive - this means we now only look for RAID partitions on sd(4) and wd(4) devices. prodded by deraadt@ ok marco@ deraadt@
2009-10-28Remove FWRITE from closes that aren't opened with FWRITE.Marco Peereboom
spotted and ok jsing
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-09-21Fix use before init on wu.Marco Peereboom
Found by jsing, tested and ok jsing.
2009-09-03Check the return value of copyin().Joel Sing
ok marco@
2009-09-03Don't call VOP_CLOSE() with a null pointer, if the VOP_OPEN() call failed.Joel Sing
ok marco@
2009-08-17the null check makes more sense when it's done before derefMartynas Venckus
ok marco@, jsing@
2009-08-09Switch softraid to vnodes to prevent bad things from happening when usingMarco Peereboom
d_open/d_close. tested by many, ok jsing, thib, krw
2009-07-31Factor out code for checking if a chunk is already in use.Joel Sing
ok marco@
2009-07-23Adding disabled framework for RAID6Jordan Hargrave
ok marco@
2009-07-12Assert copyright.Joel Sing
suggested by and ok marco@
2009-07-12Fix rebuild percentage so that it ranges from 0-99% rather than 1-100%.Joel Sing
ok marco@
2009-07-12Add support for global hotspares to softraid.Joel Sing
ok marco@
2009-07-12If devices have roamed, complain once then update the metadata, just likeJoel Sing
we do for roaming volumes. ok marco@
2009-07-11Ensure that we hold the appropriate lock before callingJoel Sing
sr_ioctl_createraid(). ok marco@
2009-07-09Be sure we don't hit a NULL deref. Pointed out byMarcus Glocker
remco at d-compu dot dyndns dot org. OK marco@
2009-06-26Overhaul sr_boot_assembly(). The original code had a number of problems,Joel Sing
including a "chunk id already in use" bug that occurred when assembling more than one volume at boot. Volumes are now kept in order, as are the chunks which they are assembled from. Duplicated chunk IDs are now handled appropriately, with the chunk that has the most recent ondisk metadata being used. Also tested by nicm@ who got bitten by the "chunk id already in use" bug. ok marco@
2009-06-24Reset the rebuild counter when initiating a rebuild.Joel Sing
ok marco@
2009-06-24Abort the current rebuild if the rebuild chunk disappears. Whilst here alsoJoel Sing
rename the abort flag so that it is more generalised. ok marco@
2009-06-23Make sure that the metadata level matches the requested assembly level whenJoel Sing
creating a volume. ok marco@
2009-06-23Fix some more whitespace issues.Joel Sing
2009-06-19Either jordan or jsing left some debug prints behind. tsk tsk.Marco Peereboom
pointed out by todd.
2009-06-18Check the set state status rather than always assuming a rebuild has beenJoel Sing
requested. Also move the rebuild initialisation code into a separate function whilst here. ok marco@
2009-06-18Fix some typos and whitespace issues.Joel Sing
ok marco@
2009-06-17Enabled EXPERIMENTAL RAID4/5 disciplineJordan Hargrave
ok marco@
2009-06-17Make openings variable instead of maxwu; needed for more exotic raid sets.Marco Peereboom
ok jordan
2009-06-17Force Raid0/4/5 volume size to multiple of stripe sizeJordan Hargrave
ok marco@
2009-06-12KNF and wrap at 80 columns.Joel Sing
ok marco@
2009-06-12Allow chunks marked as offline to be used for rebuild (ie. once disk hasJoel Sing
been replaced). ok marco@
2009-06-11Create a hotplug callback mechanism.Marco Peereboom
2009-06-10TypoMarco Peereboom
2009-06-10Add framework for raid 4 & 5 so that we can work in tree.Marco Peereboom
2009-06-03Slay the running out of wu during rebuild dragon and some cleanupMarco Peereboom
2009-06-03whitespace. "Sure" marco@Chris Kuethe
2009-06-03Oops need to kill the XXX comment that we are not enabling softraid rebuildMarco Peereboom
2009-06-03Start using the shiny new function pointer to determine if we have diskMarco Peereboom
arrivals or departures.
2009-06-03Make sure we don't stomp on a RAID partition that is already in use.Marco Peereboom
Code is now enabled and ready for general testing.
2009-06-02Abuse bio layer a little less by marking fake buffers with B_PHYS.Marco Peereboom
From beck with lots of squealing and ear bleeds. Issue originally reported by todd. ok beck
2009-06-02spaceMarco Peereboom