create_xml_data: fix nr_data_blocks

This commit is contained in:
Heinz Mauelshagen 2013-06-26 14:03:27 +02:00
parent e701b96642
commit ad817c9f3a

View File

@ -105,7 +105,7 @@ end
def xml_metadata(opts, units) def xml_metadata(opts, units)
blocks, to = opts[:thinsize] / opts[:blocksize], 0 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| 0.step(opts[:thins] - 1) do |devid|
puts begin_device(devid, opts[:thinsize]) puts begin_device(devid, opts[:thinsize])
if opts[:range] if opts[:range]