From 24c664f3cbfd7bc5a94a88fd744d007b0b6dda99 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]