create_xml_data: adjust to thinp_xml output

This commit is contained in:
Heinz Mauelshagen 2013-06-27 15:57:12 +02:00
parent dd8b9a7cd5
commit e486fe4bec

View File

@ -84,7 +84,7 @@ def parse_command_line(argv, units)
end
def begin_superblock(blocksize, nr_data_blocks)
"<superblock uuid=\"\" time=\"0\" transaction=\"0\" data_block_size=\"#{blocksize}\" nr_data_blocks=\"#{nr_data_blocks}\">\n"
"<superblock uuid=\"\" time=\"0\" transaction=\"1\" data_block_size=\"#{blocksize}\" nr_data_blocks=\"#{nr_data_blocks}\">\n"
end
def end_superblock
@ -100,11 +100,11 @@ def end_device
end
def single_mapping(from, to)
" <single_mapping origin_block=\"#{from}\" data_block=\"#{to}\" time=\"0\"/>\n"
" <single_mapping origin_block=\"#{from}\" data_block=\"#{to}\" time=\"1\"/>\n"
end
def range_mapping(from, to, length)
" <range_mapping origin_begin=\"#{from}\" data_begin=\"#{to}\" length=\"#{length}\" time=\"0\"/>\n"
" <range_mapping origin_begin=\"#{from}\" data_begin=\"#{to}\" length=\"#{length}\" time=\"1\"/>\n"
end
def blocks(opts)