From 8850204e8c1f85e76fb022c704ba1de19332e060 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 26 Jun 2013 14:22:03 +0200 Subject: [PATCH] create_xml_data: fix device and range_mapping --- thin-provisioning/create_xml_data | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thin-provisioning/create_xml_data b/thin-provisioning/create_xml_data index 0168b40..4fb5127 100755 --- a/thin-provisioning/create_xml_data +++ b/thin-provisioning/create_xml_data @@ -99,7 +99,7 @@ def single_mapping(from, to = 4711) end def range_mapping(from, to, length) - " \n" + " \n" end def xml_metadata(opts, units) @@ -107,7 +107,7 @@ def xml_metadata(opts, units) puts begin_superblock(opts[:blocksize], opts[:thins] * blocks) 0.step(opts[:thins] - 1) do |devid| - puts begin_device(devid, opts[:thinsize]) + puts begin_device(devid, blocks) if opts[:range] puts range_mapping(0, to, blocks) to += blocks