create_xml_data: fix nr_data_blocks
This commit is contained in:
parent
4deb1751a6
commit
6ba44c54a3
@ -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