create_xml_data: fix nr_data_blocks
This commit is contained in:
parent
9716a2cdbd
commit
d87fa1e0ee
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user