提交 2483537e 编写于 作者: M Max Reitz

iotests: Make 191 work with qcow2 options

In order for 191 to work with an explicit refcount_bits or compat=0.10,
we should strip format-specific information from the output--and we can
do so by using _filter_img_info.
Signed-off-by: NMax Reitz <mreitz@redhat.com>
Message-id: 20171123020832.8165-17-mreitz@redhat.com
Reviewed-by: NJohn Snow <jsnow@redhat.com>
Signed-off-by: NMax Reitz <mreitz@redhat.com>
上级 b5d92efa
...@@ -45,7 +45,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 ...@@ -45,7 +45,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
. ./common.qemu . ./common.qemu
_supported_fmt qcow2 _supported_fmt qcow2
_unsupported_imgopts compat=0.10
_supported_proto file _supported_proto file
_supported_os Linux _supported_os Linux
...@@ -92,7 +91,7 @@ echo === Check that both top and top2 point to base now === ...@@ -92,7 +91,7 @@ echo === Check that both top and top2 point to base now ===
echo echo
_send_qemu_cmd $h "{ 'execute': 'query-named-block-nodes' }" "^}" | _send_qemu_cmd $h "{ 'execute': 'query-named-block-nodes' }" "^}" |
_filter_generated_node_ids | _filter_actual_image_size _filter_generated_node_ids | _filter_actual_image_size | _filter_img_info
_send_qemu_cmd $h "{ 'execute': 'quit' }" "^}" _send_qemu_cmd $h "{ 'execute': 'quit' }" "^}"
wait=1 _cleanup_qemu wait=1 _cleanup_qemu
...@@ -140,7 +139,7 @@ echo === Check that both top and top2 point to base now === ...@@ -140,7 +139,7 @@ echo === Check that both top and top2 point to base now ===
echo echo
_send_qemu_cmd $h "{ 'execute': 'query-named-block-nodes' }" "^}" | _send_qemu_cmd $h "{ 'execute': 'query-named-block-nodes' }" "^}" |
_filter_generated_node_ids | _filter_actual_image_size _filter_generated_node_ids | _filter_actual_image_size | _filter_img_info
_send_qemu_cmd $h "{ 'execute': 'quit' }" "^}" _send_qemu_cmd $h "{ 'execute': 'quit' }" "^}"
wait=1 _cleanup_qemu wait=1 _cleanup_qemu
......
...@@ -44,49 +44,31 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -44,49 +44,31 @@ wrote 65536/65536 bytes at offset 1048576
"image": { "image": {
"backing-image": { "backing-image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.ovl2", "filename": "TEST_DIR/t.IMGFMT.ovl2",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.base",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.base",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.base",
"backing-filename": "TEST_DIR/t.qcow2.base",
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": false, "ro": false,
"node-name": "top2", "node-name": "top2",
"backing_file_depth": 1, "backing_file_depth": 1,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
"backing_file": "TEST_DIR/t.qcow2.base", "backing_file": "TEST_DIR/t.IMGFMT.base",
"encrypted": false, "encrypted": false,
"bps": 0, "bps": 0,
"bps_rd": 0, "bps_rd": 0,
...@@ -95,7 +77,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -95,7 +77,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.ovl2", "file": "TEST_DIR/t.IMGFMT.ovl2",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -103,7 +85,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -103,7 +85,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 197120, "virtual-size": 197120,
"filename": "TEST_DIR/t.qcow2.ovl2", "filename": "TEST_DIR/t.IMGFMT.ovl2",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -124,7 +106,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -124,7 +106,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.ovl2", "file": "TEST_DIR/t.IMGFMT.ovl2",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -133,49 +115,31 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -133,49 +115,31 @@ wrote 65536/65536 bytes at offset 1048576
"image": { "image": {
"backing-image": { "backing-image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2", "filename": "TEST_DIR/t.IMGFMT",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.base",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.base",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.base",
"backing-filename": "TEST_DIR/t.qcow2.base",
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": false, "ro": false,
"node-name": "top", "node-name": "top",
"backing_file_depth": 1, "backing_file_depth": 1,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
"backing_file": "TEST_DIR/t.qcow2.base", "backing_file": "TEST_DIR/t.IMGFMT.base",
"encrypted": false, "encrypted": false,
"bps": 0, "bps": 0,
"bps_rd": 0, "bps_rd": 0,
...@@ -184,7 +148,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -184,7 +148,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2", "file": "TEST_DIR/t.IMGFMT",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -192,7 +156,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -192,7 +156,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 197120, "virtual-size": 197120,
"filename": "TEST_DIR/t.qcow2", "filename": "TEST_DIR/t.IMGFMT",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -213,7 +177,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -213,7 +177,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2", "file": "TEST_DIR/t.IMGFMT",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -222,49 +186,31 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -222,49 +186,31 @@ wrote 65536/65536 bytes at offset 1048576
"image": { "image": {
"backing-image": { "backing-image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.mid", "filename": "TEST_DIR/t.IMGFMT.mid",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.base",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.base",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.base",
"backing-filename": "TEST_DIR/t.qcow2.base",
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": false, "ro": false,
"node-name": "mid", "node-name": "mid",
"backing_file_depth": 1, "backing_file_depth": 1,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
"backing_file": "TEST_DIR/t.qcow2.base", "backing_file": "TEST_DIR/t.IMGFMT.base",
"encrypted": false, "encrypted": false,
"bps": 0, "bps": 0,
"bps_rd": 0, "bps_rd": 0,
...@@ -273,7 +219,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -273,7 +219,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.mid", "file": "TEST_DIR/t.IMGFMT.mid",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -281,7 +227,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -281,7 +227,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 393216, "virtual-size": 393216,
"filename": "TEST_DIR/t.qcow2.mid", "filename": "TEST_DIR/t.IMGFMT.mid",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -302,7 +248,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -302,7 +248,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.mid", "file": "TEST_DIR/t.IMGFMT.mid",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -310,26 +256,17 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -310,26 +256,17 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": false, "ro": false,
"node-name": "base", "node-name": "base",
"backing_file_depth": 0, "backing_file_depth": 0,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
...@@ -341,7 +278,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -341,7 +278,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.base", "file": "TEST_DIR/t.IMGFMT.base",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -349,7 +286,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -349,7 +286,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 393216, "virtual-size": 393216,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -370,7 +307,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -370,7 +307,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.base", "file": "TEST_DIR/t.IMGFMT.base",
"encryption_key_missing": false "encryption_key_missing": false
} }
] ]
...@@ -447,49 +384,31 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -447,49 +384,31 @@ wrote 65536/65536 bytes at offset 1048576
"image": { "image": {
"backing-image": { "backing-image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.ovl2", "filename": "TEST_DIR/t.IMGFMT.ovl2",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.base",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.base",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.base",
"backing-filename": "TEST_DIR/t.qcow2.base",
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": true, "ro": true,
"node-name": "NODE_NAME", "node-name": "NODE_NAME",
"backing_file_depth": 1, "backing_file_depth": 1,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
"backing_file": "TEST_DIR/t.qcow2.base", "backing_file": "TEST_DIR/t.IMGFMT.base",
"encrypted": false, "encrypted": false,
"bps": 0, "bps": 0,
"bps_rd": 0, "bps_rd": 0,
...@@ -498,7 +417,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -498,7 +417,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.ovl2", "file": "TEST_DIR/t.IMGFMT.ovl2",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -506,7 +425,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -506,7 +425,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 197120, "virtual-size": 197120,
"filename": "TEST_DIR/t.qcow2.ovl2", "filename": "TEST_DIR/t.IMGFMT.ovl2",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -527,7 +446,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -527,7 +446,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.ovl2", "file": "TEST_DIR/t.IMGFMT.ovl2",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -537,68 +456,41 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -537,68 +456,41 @@ wrote 65536/65536 bytes at offset 1048576
"backing-image": { "backing-image": {
"backing-image": { "backing-image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.ovl2", "filename": "TEST_DIR/t.IMGFMT.ovl2",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.base",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.base",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.base",
"backing-filename": "TEST_DIR/t.qcow2.base",
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.ovl3", "filename": "TEST_DIR/t.IMGFMT.ovl3",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.ovl2",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.ovl2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.ovl2",
"backing-filename": "TEST_DIR/t.qcow2.ovl2",
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": false, "ro": false,
"node-name": "top2", "node-name": "top2",
"backing_file_depth": 2, "backing_file_depth": 2,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
"backing_file": "TEST_DIR/t.qcow2.ovl2", "backing_file": "TEST_DIR/t.IMGFMT.ovl2",
"encrypted": false, "encrypted": false,
"bps": 0, "bps": 0,
"bps_rd": 0, "bps_rd": 0,
...@@ -607,7 +499,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -607,7 +499,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.ovl3", "file": "TEST_DIR/t.IMGFMT.ovl3",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -615,7 +507,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -615,7 +507,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 197120, "virtual-size": 197120,
"filename": "TEST_DIR/t.qcow2.ovl3", "filename": "TEST_DIR/t.IMGFMT.ovl3",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -636,7 +528,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -636,7 +528,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.ovl3", "file": "TEST_DIR/t.IMGFMT.ovl3",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -644,26 +536,17 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -644,26 +536,17 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": true, "ro": true,
"node-name": "NODE_NAME", "node-name": "NODE_NAME",
"backing_file_depth": 0, "backing_file_depth": 0,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
...@@ -675,7 +558,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -675,7 +558,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.base", "file": "TEST_DIR/t.IMGFMT.base",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -683,7 +566,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -683,7 +566,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 393216, "virtual-size": 393216,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -704,7 +587,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -704,7 +587,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2.base", "file": "TEST_DIR/t.IMGFMT.base",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -713,49 +596,31 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -713,49 +596,31 @@ wrote 65536/65536 bytes at offset 1048576
"image": { "image": {
"backing-image": { "backing-image": {
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2.base", "filename": "TEST_DIR/t.IMGFMT.base",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": {
"type": "qcow2",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"dirty-flag": false "dirty-flag": false
}, },
"backing-filename-format": "qcow2", "backing-filename-format": "IMGFMT",
"virtual-size": 67108864, "virtual-size": 67108864,
"filename": "TEST_DIR/t.qcow2", "filename": "TEST_DIR/t.IMGFMT",
"cluster-size": 65536, "cluster-size": 65536,
"format": "qcow2", "format": "IMGFMT",
"actual-size": SIZE, "actual-size": SIZE,
"format-specific": { "full-backing-filename": "TEST_DIR/t.IMGFMT.base",
"type": "qcow2", "backing-filename": "TEST_DIR/t.IMGFMT.base",
"data": {
"compat": "1.1",
"lazy-refcounts": false,
"refcount-bits": 16,
"corrupt": false
}
},
"full-backing-filename": "TEST_DIR/t.qcow2.base",
"backing-filename": "TEST_DIR/t.qcow2.base",
"dirty-flag": false "dirty-flag": false
}, },
"iops_wr": 0, "iops_wr": 0,
"ro": false, "ro": false,
"node-name": "top", "node-name": "top",
"backing_file_depth": 1, "backing_file_depth": 1,
"drv": "qcow2", "drv": "IMGFMT",
"iops": 0, "iops": 0,
"bps_wr": 0, "bps_wr": 0,
"write_threshold": 0, "write_threshold": 0,
"backing_file": "TEST_DIR/t.qcow2.base", "backing_file": "TEST_DIR/t.IMGFMT.base",
"encrypted": false, "encrypted": false,
"bps": 0, "bps": 0,
"bps_rd": 0, "bps_rd": 0,
...@@ -764,7 +629,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -764,7 +629,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2", "file": "TEST_DIR/t.IMGFMT",
"encryption_key_missing": false "encryption_key_missing": false
}, },
{ {
...@@ -772,7 +637,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -772,7 +637,7 @@ wrote 65536/65536 bytes at offset 1048576
"detect_zeroes": "off", "detect_zeroes": "off",
"image": { "image": {
"virtual-size": 197120, "virtual-size": 197120,
"filename": "TEST_DIR/t.qcow2", "filename": "TEST_DIR/t.IMGFMT",
"format": "file", "format": "file",
"actual-size": SIZE, "actual-size": SIZE,
"dirty-flag": false "dirty-flag": false
...@@ -793,7 +658,7 @@ wrote 65536/65536 bytes at offset 1048576 ...@@ -793,7 +658,7 @@ wrote 65536/65536 bytes at offset 1048576
"direct": false, "direct": false,
"writeback": true "writeback": true
}, },
"file": "TEST_DIR/t.qcow2", "file": "TEST_DIR/t.IMGFMT",
"encryption_key_missing": false "encryption_key_missing": false
} }
] ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册