summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid_concat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Restore calculation of volume size. Accidentally removed inkrw2017-04-281-1/+9
| | | | | | | | r1.25. Fixes creation of concat volumes. Noticed by and diff from Thordur I. Bjornsson via tech@ ok jsing@
* No need to rescan chunks in each discipline to find appropriatekrw2016-04-121-14/+1
| | | | | | volume sector size. Determine volume sector size in sr_meta_init(). Pointed out, tweaked and ok jsing@
* Enable creation of softraid volumes using disks with non-512 bytekrw2016-04-041-2/+8
| | | | | | | | | sectors. Volumes created will present a sector size equal to the largest sector size of the constituent disks. Softraid Metadata version cranks to 6 due to new field. ok jsing@ with tweaks that will follow soon.
* A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'krw2015-07-211-14/+14
| | | | | | | | | since they are now relative to chunks. Use 'blkno' as normal variable name for daddr_t items rather than mix of 'blkno, blk, offset. Change field name ssd_data_offset to ssd_data_blkno since it is a block and not byte quantity. No intentional functional change.
* Stop adding and subtracting data offset. Just keep to chunk relativekrw2015-07-191-2/+1
| | | | | | | | | block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
* Stray missing (long long) on a daddr_t variable being printed.krw2013-11-221-2/+2
| | | | ok jsing@
* Don't cast int64_t variables to (long long) when using %lld.krw2013-11-211-4/+2
|
* Change a bunch of daddr_t variables that don't (obviously) containkrw2013-11-211-4/+5
| | | | | | 512-byte-block information to int64_t, the underlying type of daddr_t at the moment. No change to .o files. Removal of now unneeded (long long) casts is next.
* Sprinkle (long long) casts where %lld is being used to print daddr_tkrw2013-11-011-2/+4
| | | | | | variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@
* final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt2013-06-111-4/+4
| | | | | test period; i think 3 years ago the last bugs fell out. ok otto beck others
* Provide a function that handles the scheduling of work units. Thisjsing2013-05-211-7/+3
| | | | | | | simplifies the discipline code, avoids code duplication and moves the scheduling logic into a single location. ok krw@
* Use consistent error handling when validating the number of chunksjsing2013-03-311-2/+3
| | | | provided.
* More runtime value initialisation functions.jsing2013-03-311-4/+10
|
* Provide default resource allocation and free functions. Convert alljsing2013-03-311-38/+1
| | | | disciplines except for AOE and CRYPTO, which require custom handlers.
* Provide a default discipline interrupt handling function and migrate all ofjsing2013-03-301-23/+1
| | | | | | the disciplines that now have the same interrupt code. ok krw@
* sr_alloc_resources() and sr_free_resources() can never be called withoutjsing2013-03-021-8/+1
| | | | a valid struct sr_discipline. Remove redundant NULL pointer checks.
* Unbreak softraid compilation with debug enabled.jsing2013-03-021-2/+2
| | | | Prompted by Dmitry Bogdan.
* Convert softraid concat to new workunit completion functions.jsing2013-01-181-41/+13
|
* Clean up and rework workunit completion for concat. Ensure that we removejsing2013-01-181-31/+21
| | | | | | | the workunit from the pending queue and restart deferred workunits, even in error conditions. ok krw@
* Convert softraid concat to the new ccb functions.jsing2013-01-171-63/+8
| | | | ok krw@
* Set resid to zero if the scsi transfer completed without error.jsing2013-01-161-2/+1
| | | | ok krw@
* Always initialise the discipline name, not just when we are doing a create.jsing2013-01-151-4/+2
|
* Keep a function pointer to the per-discipline I/O interrupt handler in thejsing2013-01-151-1/+2
| | | | discipline data structure. To be used with an upcoming diff.
* Provide a mechanism for the kernel to pass data through to the disciplinejsing2012-10-081-3/+3
| | | | during volume assembly.
* Convert softraid(4) to new bio(4) status interface. This allows bioctl(8)jsing2012-01-221-2/+4
| | | | | | to provide useful feedback, rather than reporting an ioctl failure and leaving the user to consult dmesg. For now we continue to print most things to the console, even if the message is a result of an ioctl.
* Implement a concatenating discipline for softraid.jsing2011-12-311-0/+329
Many thanks to Marco Peereboom for his assistance with testing and debugging. Thanks also to Josh Grosse and Chris Jackman for testing.