svn commit: r245519 - head/sys/geom/raid
Alexander Motin
mav at FreeBSD.org
Thu Jan 17 00:09:51 UTC 2013
Author: mav
Date: Thu Jan 17 00:09:50 2013
New Revision: 245519
URL: http://svnweb.freebsd.org/changeset/base/245519
Log:
Recalculate volume size only for real CONCATs. For SINGLE trust volume
size given by metadata, as it should be correct and in some cases can be
smaller then subdisk size.
Modified:
head/sys/geom/raid/tr_concat.c
Modified: head/sys/geom/raid/tr_concat.c
==============================================================================
--- head/sys/geom/raid/tr_concat.c Wed Jan 16 23:49:55 2013 (r245518)
+++ head/sys/geom/raid/tr_concat.c Thu Jan 17 00:09:50 2013 (r245519)
@@ -124,7 +124,8 @@ g_raid_tr_update_state_concat(struct g_r
* Some metadata modules may not know CONCAT volume
* mediasize until all disks connected. Recalculate.
*/
- if (G_RAID_VOLUME_S_ALIVE(s) &&
+ if (vol->v_raid_level == G_RAID_VOLUME_RL_CONCAT &&
+ G_RAID_VOLUME_S_ALIVE(s) &&
!G_RAID_VOLUME_S_ALIVE(vol->v_state)) {
size = 0;
for (i = 0; i < vol->v_disks_count; i++) {
More information about the svn-src-all
mailing list