| 1 | QA output created by 108 |
| 2 | |
| 3 | === Repairing an image without any refcount table === |
| 4 | |
| 5 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 6 | wrote 65536/65536 bytes at offset 0 |
| 7 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 8 | ERROR cluster 0 refcount=0 reference=1 |
| 9 | ERROR cluster 3 refcount=0 reference=1 |
| 10 | ERROR cluster 4 refcount=0 reference=1 |
| 11 | ERROR cluster 5 refcount=0 reference=1 |
| 12 | Rebuilding refcount structure |
| 13 | The following inconsistencies were found and repaired: |
| 14 | |
| 15 | 0 leaked clusters |
| 16 | 4 corruptions |
| 17 | |
| 18 | Double checking the fixed image now... |
| 19 | No errors were found on the image. |
| 20 | read 65536/65536 bytes at offset 0 |
| 21 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 22 | |
| 23 | === Repairing unreferenced data cluster in new refblock area === |
| 24 | |
| 25 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 26 | wrote 111104/111104 bytes at offset 0 |
| 27 | 108.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 28 | 131072 |
| 29 | wrote 512/512 bytes at offset 131072 |
| 30 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 31 | read 512/512 bytes at offset 111104 |
| 32 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 33 | ERROR cluster 256 refcount=0 reference=1 |
| 34 | Rebuilding refcount structure |
| 35 | Repairing cluster 1 refcount=1 reference=0 |
| 36 | Repairing cluster 2 refcount=1 reference=0 |
| 37 | The following inconsistencies were found and repaired: |
| 38 | |
| 39 | 0 leaked clusters |
| 40 | 1 corruptions |
| 41 | |
| 42 | Double checking the fixed image now... |
| 43 | No errors were found on the image. |
| 44 | read 512/512 bytes at offset 111104 |
| 45 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 46 | |
| 47 | === Repairing refblock beyond the image end === |
| 48 | |
| 49 | |
| 50 | --- Otherwise clean --- |
| 51 | |
| 52 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 53 | Repairing refcount block 1 is outside image |
| 54 | The following inconsistencies were found and repaired: |
| 55 | |
| 56 | 0 leaked clusters |
| 57 | 1 corruptions |
| 58 | |
| 59 | Double checking the fixed image now... |
| 60 | No errors were found on the image. |
| 61 | |
| 62 | --- Refblock is unallocated --- |
| 63 | |
| 64 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 65 | Repairing refcount block 1 is outside image |
| 66 | ERROR cluster 16 refcount=0 reference=1 |
| 67 | Rebuilding refcount structure |
| 68 | Repairing cluster 1 refcount=1 reference=0 |
| 69 | Repairing cluster 2 refcount=1 reference=0 |
| 70 | Repairing cluster 16 refcount=1 reference=0 |
| 71 | The following inconsistencies were found and repaired: |
| 72 | |
| 73 | 0 leaked clusters |
| 74 | 2 corruptions |
| 75 | |
| 76 | Double checking the fixed image now... |
| 77 | No errors were found on the image. |
| 78 | |
| 79 | --- Signed overflow after the refblock --- |
| 80 | |
| 81 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 82 | Repairing refcount block 1 is outside image |
| 83 | ERROR could not resize image: Invalid argument |
| 84 | Rebuilding refcount structure |
| 85 | Repairing cluster 1 refcount=1 reference=0 |
| 86 | Repairing cluster 2 refcount=1 reference=0 |
| 87 | The following inconsistencies were found and repaired: |
| 88 | |
| 89 | 0 leaked clusters |
| 90 | 1 corruptions |
| 91 | |
| 92 | Double checking the fixed image now... |
| 93 | No errors were found on the image. |
| 94 | |
| 95 | --- Unsigned overflow after the refblock --- |
| 96 | |
| 97 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
| 98 | Repairing refcount block 1 is outside image |
| 99 | ERROR could not resize image: Invalid argument |
| 100 | Rebuilding refcount structure |
| 101 | Repairing cluster 1 refcount=1 reference=0 |
| 102 | Repairing cluster 2 refcount=1 reference=0 |
| 103 | The following inconsistencies were found and repaired: |
| 104 | |
| 105 | 0 leaked clusters |
| 106 | 1 corruptions |
| 107 | |
| 108 | Double checking the fixed image now... |
| 109 | No errors were found on the image. |
| 110 | |
| 111 | === Check rebuilt reftable location === |
| 112 | |
| 113 | --- Does the image size increase? --- |
| 114 | |
| 115 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 |
| 116 | wrote 65536/65536 bytes at offset 0 |
| 117 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 118 | |
| 119 | ERROR cluster 0 refcount=0 reference=1 |
| 120 | Rebuilding refcount structure |
| 121 | The following inconsistencies were found and repaired: |
| 122 | |
| 123 | 0 leaked clusters |
| 124 | 1 corruptions |
| 125 | |
| 126 | Double checking the fixed image now... |
| 127 | No errors were found on the image. |
| 128 | |
| 129 | OK: Image size did not change |
| 130 | |
| 131 | --- Will the reftable occupy a hole specifically left for it? --- |
| 132 | |
| 133 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=9437184 |
| 134 | wrote 8388608/8388608 bytes at offset 0 |
| 135 | 8 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 136 | discard 512/512 bytes at offset 0 |
| 137 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 138 | discard 1024/1024 bytes at offset 4096 |
| 139 | 1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 140 | |
| 141 | ERROR cluster 0 refcount=0 reference=1 |
| 142 | Rebuilding refcount structure |
| 143 | The following inconsistencies were found and repaired: |
| 144 | |
| 145 | 0 leaked clusters |
| 146 | 1 corruptions |
| 147 | |
| 148 | Double checking the fixed image now... |
| 149 | No errors were found on the image. |
| 150 | |
| 151 | OK: Reftable is where we expect it |
| 152 | |
| 153 | --- Rebuilding refcount structures on block devices --- |
| 154 | |
| 155 | { "execute": "qmp_capabilities" } |
| 156 | {"return": {}} |
| 157 | { "execute": "blockdev-create", |
| 158 | "arguments": { |
| 159 | "job-id": "create", |
| 160 | "options": { |
| 161 | "driver": "IMGFMT", |
| 162 | "file": "file", |
| 163 | "size": 67108864, |
| 164 | "cluster-size": 512 |
| 165 | } } } |
| 166 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "create"}} |
| 167 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "create"}} |
| 168 | {"return": {}} |
| 169 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "create"}} |
| 170 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "create"}} |
| 171 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "create"}} |
| 172 | { "execute": "job-dismiss", "arguments": { "id": "create" } } |
| 173 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "create"}} |
| 174 | {"return": {}} |
| 175 | { "execute": "quit" } |
| 176 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} |
| 177 | {"return": {}} |
| 178 | |
| 179 | wrote 65536/65536 bytes at offset 0 |
| 180 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 181 | |
| 182 | ERROR cluster 0 refcount=0 reference=1 |
| 183 | Rebuilding refcount structure |
| 184 | The following inconsistencies were found and repaired: |
| 185 | |
| 186 | 0 leaked clusters |
| 187 | 1 corruptions |
| 188 | |
| 189 | Double checking the fixed image now... |
| 190 | No errors were found on the image. |
| 191 | *** done |