From d87fa1e0eefb9d4185e2fef66a92b68eab3fa9c1 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 26 Jun 2013 14:03:27 +0200 Subject: [PATCH] create_xml_data: fix nr_data_blocks --- thin-provisioning/create_xml_data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thin-provisioning/create_xml_data b/thin-provisioning/create_xml_data index 42942cb..0168b40 100755 --- a/thin-provisioning/create_xml_data +++ b/thin-provisioning/create_xml_data @@ -105,7 +105,7 @@ end def xml_metadata(opts, units) blocks, to = opts[:thinsize] / opts[:blocksize], 0 - puts begin_superblock(opts[:blocksize], blocks) + puts begin_superblock(opts[:blocksize], opts[:thins] * blocks) 0.step(opts[:thins] - 1) do |devid| puts begin_device(devid, opts[:thinsize]) if opts[:range]