[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-commits-all
Subject:    svn commit: r246160 - stable/9/sys/geom/raid
From:       Alexander Motin <mav () FreeBSD ! org>
Date:       2013-01-31 21:24:38
Message-ID: 201301312124.r0VLOcNK032012 () svn ! freebsd ! org
[Download RAW message or body]

Author: mav
Date: Thu Jan 31 21:24:38 2013
New Revision: 246160
URL: http://svnweb.freebsd.org/changeset/base/246160

Log:
  MFC r245519:
  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:
  stable/9/sys/geom/raid/tr_concat.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/geom/raid/tr_concat.c
==============================================================================
--- stable/9/sys/geom/raid/tr_concat.c	Thu Jan 31 21:01:42 2013	(r246159)
+++ stable/9/sys/geom/raid/tr_concat.c	Thu Jan 31 21:24:38 2013	(r246160)
@@ -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++) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic