create_xml_data: fix nr_data_blocks

This commit is contained in:
Heinz Mauelshagen 2013-06-26 14:03:27 +02:00
parent 4f2af9b719
commit 283cc27cbd

View File

@ -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]