Y'all,

During some refactoring work, the volume size calculation for the concat
discipline got lost, resulting in zero sized volumes.

http://secnorth.net/diffs/softraid-concat.diff:

diff --git a/sys/dev/softraid_concat.c b/sys/dev/softraid_concat.c
index 90cb12c8b6e..11fbf8ddb3f 100644
--- a/sys/dev/softraid_concat.c
+++ b/sys/dev/softraid_concat.c
@@ -60,12 +60,19 @@ int
 sr_concat_create(struct sr_discipline *sd, struct bioc_createraid *bc,
     int no_chunk, int64_t coerced_size)
 {
+ int i;
+
  if (no_chunk < 2) {
  sr_error(sd->sd_sc, "%s requires two or more chunks",
     sd->sd_name);
  return EINVAL;
         }

+ for (i = 0 ; i < no_chunk; i++) {
+ sd->sd_meta->ssdi.ssd_size +=
+    sd->sd_vol.sv_chunks[i]->src_size;
+ }
+
  return sr_concat_init(sd);
 }


-- 
/ciao, thorduri.

Reply via email to