Age | Commit message (Collapse) | Author |
|
volume sector size. Determine volume sector size in sr_meta_init().
Pointed out, tweaked and ok jsing@
|
|
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.
|
|
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.
|
|
ok jsing@
|
|
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@
|
|
to include that than rdnvar.h. ok deraadt dlg
|
|
ok mpi@ kspillner@
|
|
|
|
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.
|
|
A 64bit bit operation with the 32bit strip size could overflow and
result in ridiculously small volumes when using large partitions (eg.
4x 3TB in RAID 5 resulted in a ~2TB volume). It is fixed by casting
the strip size to an unsigned 64bit value.
ok tedu@ millert@ deraadt@
|
|
variables. Some random whitespace/knf repairs encountered on the way.
ok miod@ on inspection, feedback & more suggestions from millert@
|
|
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
simplifies the discipline code, avoids code duplication and moves the
scheduling logic into a single location.
ok krw@
|
|
provided.
|
|
disciplines except for AOE and CRYPTO, which require custom handlers.
|
|
function, rather than having it spread across create/assemble/alloc.
Also handle strip size errors appropriately, rather than failing silently.
ok krw@
|
|
the disciplines that now have the same interrupt code.
ok krw@
|
|
a valid struct sr_discipline. Remove redundant NULL pointer checks.
|
|
Prompted by Dmitry Bogdan.
|
|
|
|
the workunit from the pending queue and restart deferred workunits, even
in error conditions.
ok krw@
|
|
ok krw@
|
|
ok krw@
|
|
|
|
discipline data structure. To be used with an upcoming diff.
|
|
during volume assembly.
|
|
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.
|
|
cover the no redundancy/no rebuild case. Use these for the AOE, crypto and
RAID 0 disciplines.
|
|
those that are needed by a specific discipline.
|
|
ok dlg@ marco@
|
|
metadata. This allows us to implement seamless transitions from the
previous metadata version to the current version, avoiding the need to
recreate the softraid volume.
Joint work with marco@ during c2k10.
ok marco@
|
|
one memset -> bzero.
ok marco@, jsing@
|
|
Also add a new optional metadata type for boot data. This is the first
step (of many) towards being able to boot from softraid volumes.
WARNING: This version of the softraid metadata is not compatible with
previous versions. As a result, any softraid volumes created with older
kernels will not assemble. Data on existing softraid volumes should be
backed up before upgrading. The volume should then be recreated and the
data restored.
ok marco@
|
|
else cares so it's just noise. Drivers that actually look at ITSDONE
are unchanged.
ok marco@ (for his files) dlg@ beck@
|
|
"in, in, in!" marco@
|
|
"shiny!!" marco@
|
|
d_open/d_close.
tested by many, ok jsing, thib, krw
|
|
From beck with lots of squealing and ear bleeds.
Issue originally reported by todd.
ok beck
|
|
ok oga guenther
|
|
rather than initialising everything in softraid.c. This makes a discipline
more self-contained and reduces the number of function declarations needed
in softraidvar.h.
ok marco@
|
|
use with caution...
|
|
|
|
|
|
that caused illegal checksums. The new metadata code is more or less ready
to deal with other vendor's metadata formats.
While here clean up the name space.
Fix thib's pool mess by adding removing bad flags in interrupt context.
tested on macppc, amd64, i386, sparc64 & hppa
sparc64 has issues with crypto however those do not seem to be softraid
specific.
help from okan@ ckuethe@ Will Backman and others
|
|
fucntion. Fix bug in the crypto code that could casuse data corruption as
a bonus, bad cut & past tedu!
|
|
same code in all disciplines. This shaves of a few bytes.
crypto 3185 -> 2690
raid 0 2843 -> 2378
raid 1 3474 -> 2689
|
|
|
|
Move RAID 1 chunk and state transition functions into proper file.
Let Crypto use RAID 1 chunk and state transition functions for now but this
needs fixing.
|
|
Fix bioctl size output which was off by *512; diagnosed by otto
|
|
|