le
b83d5cd619
Compare the addresses of two RAID5 work packets directly instead
...
of the addresses of their related bios when locking one out, since
they could share a bio and this could lead to parity corruption.
2004-08-23 17:50:18 +00:00
le
a52623fe58
Implement the possibility to remove drives.
2004-08-22 17:07:55 +00:00
le
9c58beacac
Add forgotten format specifier in a KASSERT and shut up the compiler.
...
Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
2004-08-22 13:34:24 +00:00
le
7f135ded9a
A volume can be up if it has a degraded RAID5 plex.
2004-08-19 12:03:27 +00:00
le
89428b4ca7
Pretty print some informational messages.
2004-08-18 20:43:56 +00:00
le
fc5a15a34b
Fix a stupid bug in the drive taste function: when checking if a
...
drive is known to the configuration check also if it already has a geom.
Without this check several needless geoms are created and valid
configuration data was overwritten.
This change obsoletes the need for a separate geom to taste an
offered provider and the consumer doesn't need to be opened with the
exclusive bit set.
2004-08-18 20:34:45 +00:00
le
3d9480a588
Make informational output look less like an accident.
2004-08-14 09:56:17 +00:00
le
8bc23a2edf
If we kill the worklist thread of a RAID5 plex we can destroy
...
the worklist mutex at the same time, so move the mtx_destroy() call
to gv_kill_thread().
2004-08-10 20:51:48 +00:00
le
627d263e7e
Lock the topology before calling gv_parse_config, not afterwards.
2004-08-10 20:15:12 +00:00
phk
d8d2b01380
Tag all geom classes in the tree with a version number.
2004-08-08 07:57:53 +00:00
le
e2ca49b0bc
Propagate size changes upwards.
2004-07-31 21:34:21 +00:00
le
d9c517d66a
Set the access counts of a subdisk correctly when attaching it
...
to a plex that already has subdisks.
2004-07-30 23:40:38 +00:00
le
8e620f7e71
Shut up the compiler and temporarily '#if 0' gv_destroy_geom(),
...
until we need it again.
2004-07-29 11:32:09 +00:00
le
8870a257a7
Save the vinum config back to disk after syncing two plexes.
2004-07-26 07:30:21 +00:00
le
d360d6d42f
There's a chance that the VINUMDRIVE class tastes before the
...
VINUM class, so let the VINUMDRIVE class parse the on-disk
configuration, too.
2004-07-25 23:01:09 +00:00
le
9795b96112
Use a temporary geom when tasting vinumdrives and lock the 'real'
...
vinumdrive geom with an exclusive bit. This should fix the problem
when underlying partitions overlap (i.e. the 'a' partition is at
the same offset as the 'c' partition).
Ideas borrowed from pjd@, quite a bit of testing by
Matthias Schuendehuette <msch@snafu.de>.
2004-07-24 22:26:40 +00:00
le
64d6caaef2
Disable kldunloading of geom_vinum temporarily until I figured out
...
how to do it correctly.
2004-07-24 19:04:24 +00:00
pjd
c3fce26a1f
g_clone_bio() can fail, be ready for this.
...
Approved by: le
2004-07-05 13:24:22 +00:00
le
d754d951b9
Mark a plex as 'newborn' when it is created. This is used to indicate
...
that new RAID5 plexes need to be initialized first.
2004-06-25 18:04:33 +00:00
csjp
7e172b8cb6
Currently, if the drives specified for volume creation are
...
not active GEOM providers, it will result in a kernel panic.
If the GEOM provider or disk goes away before the volume
configuration data gets written to the disk, it will result
in another kernel panic.
o Make sure that the drives specified for volume creation
are active GEOM providers.
o When writing out volume configuration data to associated drives,
make sure that the GEOM provider is active, otherwise continue
to the next drive in the volume.
Approved by: le, bmilekic (mentor)
2004-06-24 02:40:34 +00:00
le
9eb205c8da
Add a function to clean up RAID5 packets and use it when I/O has
...
finished or when building the complete packet fails.
2004-06-23 23:52:55 +00:00
le
b6dc252aa6
Remove two debugging printfs that are currently rather disturbing
...
than helpful.
2004-06-23 22:32:01 +00:00
le
6c59c5fae6
Accept "sd len 0" and auto-size the subdisk correctly.
...
Spotted by: csjp
2004-06-23 21:15:55 +00:00
le
e2e28b4745
No need to free the softc, because it wasn't allocated.
2004-06-22 18:13:43 +00:00
le
853033de65
Don't sleep in the g_down path. More error checks to come.
2004-06-22 14:54:31 +00:00
le
b7f1bee2cf
Clean up allocated ressources when destroying the main vinum geom.
2004-06-18 19:53:33 +00:00
le
c2c39c8956
Handle dead disks in a somewhat sane way.
2004-06-16 14:41:04 +00:00
le
69fc473ab3
Fix several bugs related to subdisk drive_offset calculation.
2004-06-15 20:56:25 +00:00
le
7429d59ed6
Don't free a VINUMDRIVE softc when it's orphaned or spoiled. All
...
allocated ressouces should be ultimately freed in gv_destroy_geom()
(when unloading the module and not earlier), but I need to look at this
more closely.
2004-06-14 17:12:32 +00:00
le
57fad3e864
Correctly calculate subdisk offset in RAID5 plexes.
2004-06-14 17:06:55 +00:00
le
cf31d52b42
Add a first version of a GEOMified vinum.
2004-06-12 21:16:10 +00:00