Tell the user how raid0 looks like. raid0.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) Signed-Off-by:raziebe@xxxxxxxxx --- diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 9865316..2ce81d0 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -267,6 +267,29 @@ static int raid0_is_power2_chunk(mddev_t *mddev) } +static void raid0_dump_zones(mddev_t *mddev) +{ + int j, k, h; + char b[BDEVNAME_SIZE]; + raid0_conf_t *conf = mddev_to_conf(mddev); + printk(KERN_INFO "***** %s configuration ******", + mdname(mddev)); + h = 0; + for (j = 0; j < conf->nr_strip_zones; j++) { + printk("\nzone%d", j); + printk("=["); + for (k = 0; k < conf->strip_zone[j].nb_dev; k++) + printk("%s/", bdevname( + conf->strip_zone[j].dev[k]->bdev, b)); + printk("]\n\t zone offset=%llu device offset=%llu size=%llukb\n", + (unsigned long long)conf->strip_zone[j].zone_start, + (unsigned long long)conf->strip_zone[j].dev_start, + (unsigned long long)conf->strip_zone[j].sectors>>1); + } + printk(KERN_INFO "**********************************\n\n"); +} + + static int raid0_run(mddev_t *mddev) { int ret; @@ -317,6 +340,7 @@ static int raid0_run(mddev_t *mddev) } blk_queue_merge_bvec(mddev->queue, raid0_mergeable_bvec); + raid0_dump_zones(mddev); return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html