1QA output created by qemu-img-bitmaps 2 3=== Initial image setup === 4 5Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=10485760 6wrote 1048576/1048576 bytes at offset 3145728 71 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 8Formatting 'TEST_DIR/t.IMGFMT.orig', fmt=IMGFMT size=10485760 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 9wrote 1048576/1048576 bytes at offset 0 101 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 11wrote 1048576/1048576 bytes at offset 3145728 121 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 13wrote 1048576/1048576 bytes at offset 1048576 141 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 15wrote 1048576/1048576 bytes at offset 2097152 161 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 17 18=== Bitmap preservation not possible to non-qcow2 === 19 20qemu-img: Format driver 'raw' does not support bitmaps 21 22=== Convert with bitmap preservation === 23 24image: TEST_DIR/t.IMGFMT 25file format: IMGFMT 26virtual size: 10 MiB (10485760 bytes) 27cluster_size: 65536 28Format specific information: 29 bitmaps: 30 [0]: 31 flags: 32 name: b1 33 granularity: 524288 34 [1]: 35 flags: 36 [0]: auto 37 name: b2 38 granularity: 65536 39 corrupt: false 40image: TEST_DIR/t.IMGFMT 41file format: IMGFMT 42virtual size: 10 MiB (10485760 bytes) 43cluster_size: 65536 44Format specific information: 45 bitmaps: 46 [0]: 47 flags: 48 name: b1 49 granularity: 524288 50 [1]: 51 flags: 52 [0]: auto 53 name: b2 54 granularity: 65536 55 [2]: 56 flags: 57 name: b0 58 granularity: 65536 59 corrupt: false 60 61=== Merge from top layer into backing image === 62 63image: TEST_DIR/t.IMGFMT 64file format: IMGFMT 65virtual size: 10 MiB (10485760 bytes) 66cluster_size: 65536 67backing file: TEST_DIR/t.IMGFMT.base 68backing file format: IMGFMT 69Format specific information: 70 bitmaps: 71 [0]: 72 flags: 73 name: b1 74 granularity: 524288 75 [1]: 76 flags: 77 [0]: auto 78 name: b2 79 granularity: 65536 80 [2]: 81 flags: 82 name: b0 83 granularity: 65536 84 corrupt: false 85 86image: TEST_DIR/t.IMGFMT.base 87file format: IMGFMT 88virtual size: 10 MiB (10485760 bytes) 89cluster_size: 65536 90Format specific information: 91 bitmaps: 92 [0]: 93 flags: 94 [0]: auto 95 name: b0 96 granularity: 65536 97 [1]: 98 flags: 99 [0]: auto 100 name: b3 101 granularity: 65536 102 corrupt: false 103 104=== Check bitmap contents === 105 106[{ "start": 0, "length": 3145728, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 107{ "start": 3145728, "length": 1048576, "depth": 0, "present": false, "zero": false, "data": false}, 108{ "start": 4194304, "length": 6291456, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 109[{ "start": 0, "length": 1048576, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 110{ "start": 1048576, "length": 1048576, "depth": 0, "present": false, "zero": false, "data": false}, 111{ "start": 2097152, "length": 8388608, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 112[{ "start": 0, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 113{ "start": 2097152, "length": 1048576, "depth": 0, "present": false, "zero": false, "data": false}, 114{ "start": 3145728, "length": 7340032, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 115[{ "start": 0, "length": 2097152, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}, 116{ "start": 2097152, "length": 1048576, "depth": 0, "present": false, "zero": false, "data": false}, 117{ "start": 3145728, "length": 7340032, "depth": 0, "present": true, "zero": false, "data": true, "offset": OFFSET}] 118 119=== Check handling of inconsistent bitmap === 120 121image: TEST_DIR/t.IMGFMT 122file format: IMGFMT 123virtual size: 10 MiB (10485760 bytes) 124cluster_size: 65536 125backing file: TEST_DIR/t.IMGFMT.base 126backing file format: IMGFMT 127Format specific information: 128 bitmaps: 129 [0]: 130 flags: 131 [0]: in-use 132 [1]: auto 133 name: b2 134 granularity: 65536 135 [1]: 136 flags: 137 [0]: in-use 138 name: b0 139 granularity: 65536 140 [2]: 141 flags: 142 [0]: auto 143 name: b4 144 granularity: 65536 145 corrupt: false 146 147qemu-img: Cannot copy inconsistent bitmap 'b0' 148Try --skip-broken-bitmaps, or use 'qemu-img bitmap --remove' to delete it 149qemu-img: Could not open 'TEST_DIR/t.IMGFMT.copy': Could not open 'TEST_DIR/t.IMGFMT.copy': No such file or directory 150 151qemu-img: warning: Skipping inconsistent bitmap 'b0' 152qemu-img: warning: Skipping inconsistent bitmap 'b2' 153image: TEST_DIR/t.IMGFMT.copy 154file format: IMGFMT 155virtual size: 10 MiB (10485760 bytes) 156cluster_size: 65536 157Format specific information: 158 bitmaps: 159 [0]: 160 flags: 161 [0]: auto 162 name: b4 163 granularity: 65536 164 corrupt: false 165 166image: TEST_DIR/t.IMGFMT.copy 167file format: IMGFMT 168virtual size: 10 MiB (10485760 bytes) 169cluster_size: 65536 170Format specific information: 171 bitmaps: 172 [0]: 173 flags: 174 [0]: auto 175 name: b4 176 granularity: 65536 177 [1]: 178 flags: 179 [0]: auto 180 name: b2 181 granularity: 65536 182 corrupt: false 183*** done 184