]>
Commit | Line | Data |
---|---|---|
d2eed8c6 HR |
1 | QA output created by 112 |
2 | ||
3 | === refcount_bits limits === | |
4 | ||
5 | qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits | |
6 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
7 | qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits | |
8 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 refcount_bits=-1 | |
9 | qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits | |
10 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
11 | qemu-img: TEST_DIR/t.IMGFMT: Refcount width must be a power of two and may not exceed 64 bits | |
12 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
13 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
14 | refcount bits: 1 | |
15 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
16 | refcount bits: 64 | |
17 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
18 | refcount bits: 16 | |
19 | ||
20 | === refcount_bits and compat=0.10 === | |
21 | ||
22 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
23 | refcount bits: 16 | |
b76b4f60 | 24 | qemu-img: TEST_DIR/t.IMGFMT: Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater) |
d2eed8c6 | 25 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
b76b4f60 | 26 | qemu-img: TEST_DIR/t.IMGFMT: Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater) |
d2eed8c6 HR |
27 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 |
28 | ||
29 | === Snapshot limit on refcount_bits=1 === | |
30 | ||
31 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
32 | refcount bits: 1 | |
33 | wrote 512/512 bytes at offset 0 | |
34 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
35 | qemu-img: Could not create snapshot 'foo': -22 (Invalid argument) | |
36 | Leaked cluster 6 refcount=1 reference=0 | |
37 | ||
38 | 1 leaked clusters were found on the image. | |
39 | This means waste of disk space, but no harm to data. | |
40 | ||
41 | === Snapshot limit on refcount_bits=2 === | |
42 | ||
43 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
44 | refcount bits: 2 | |
45 | wrote 512/512 bytes at offset 0 | |
46 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
47 | qemu-img: Could not create snapshot 'baz': -22 (Invalid argument) | |
48 | Leaked cluster 7 refcount=1 reference=0 | |
49 | ||
50 | 1 leaked clusters were found on the image. | |
51 | This means waste of disk space, but no harm to data. | |
52 | ||
53 | === Compressed clusters with refcount_bits=1 === | |
54 | ||
55 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
56 | refcount bits: 1 | |
57 | wrote 65536/65536 bytes at offset 0 | |
58 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
59 | wrote 65536/65536 bytes at offset 65536 | |
60 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
61 | No errors were found on the image. | |
62 | ||
63 | === MSb set in 64 bit refcount === | |
64 | ||
65 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
66 | refcount bits: 64 | |
67 | wrote 512/512 bytes at offset 0 | |
68 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69 | wrote 512/512 bytes at offset 0 | |
70 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
71 | ||
72 | === Snapshot on maximum 64 bit refcount value === | |
73 | ||
74 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
75 | refcount bits: 64 | |
76 | wrote 512/512 bytes at offset 0 | |
77 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
78 | qemu-img: Could not create snapshot 'foo': -22 (Invalid argument) | |
79 | Leaked cluster 5 refcount=18446744073709551615 reference=1 | |
80 | Leaked cluster 6 refcount=1 reference=0 | |
81 | ||
82 | 2 leaked clusters were found on the image. | |
83 | This means waste of disk space, but no harm to data. | |
e9dbdc5e HR |
84 | |
85 | === Amend from refcount_bits=16 to refcount_bits=1 === | |
86 | ||
87 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
88 | refcount bits: 16 | |
89 | wrote 33554432/33554432 bytes at offset 16777216 | |
90 | 32 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
91 | No errors were found on the image. | |
92 | refcount bits: 1 | |
93 | ||
94 | === Amend from refcount_bits=1 to refcount_bits=64 === | |
95 | ||
96 | No errors were found on the image. | |
97 | refcount bits: 64 | |
98 | ||
99 | === Amend to compat=0.10 === | |
100 | ||
101 | qemu-img: compat=0.10 requires refcount_bits=16 | |
e9dbdc5e HR |
102 | refcount bits: 64 |
103 | No errors were found on the image. | |
104 | refcount bits: 16 | |
105 | refcount bits: 16 | |
d1402b50 | 106 | qemu-img: Refcount widths other than 16 bits require compatibility level 1.1 or above (use compat=1.1 or greater) |
e9dbdc5e HR |
107 | refcount bits: 16 |
108 | ||
109 | === Amend with snapshot === | |
110 | ||
111 | wrote 16777216/16777216 bytes at offset 0 | |
112 | 16 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
113 | qemu-img: Cannot decrease refcount entry width to 1 bits: Cluster at offset 0x50000 has a refcount of 2 | |
e9dbdc5e HR |
114 | No errors were found on the image. |
115 | refcount bits: 16 | |
116 | No errors were found on the image. | |
117 | refcount bits: 2 | |
118 | ||
119 | === Testing too many references for check === | |
120 | ||
121 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 | |
122 | refcount bits: 1 | |
123 | wrote 65536/65536 bytes at offset 0 | |
124 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
125 | ERROR: overflow cluster offset=0x50000 | |
126 | Use qemu-img amend to increase the refcount entry width or qemu-img convert to create a clean copy if the image cannot be opened for writing | |
127 | ||
128 | 1 errors were found on the image. | |
129 | Data may be corrupted, or further writes to the image may corrupt it. | |
130 | refcount bits: 2 | |
131 | ERROR cluster 5 refcount=1 reference=2 | |
132 | Repairing cluster 5 refcount=1 reference=2 | |
133 | Repairing OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=2 | |
134 | Repairing OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=2 | |
135 | The following inconsistencies were found and repaired: | |
136 | ||
137 | 0 leaked clusters | |
138 | 3 corruptions | |
139 | ||
140 | Double checking the fixed image now... | |
141 | No errors were found on the image. | |
142 | ||
143 | === Multiple walks necessary during amend === | |
144 | ||
145 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=65536 | |
146 | wrote 29696/29696 bytes at offset 0 | |
147 | 29 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
148 | (66.67/100%) | |
149 | (50.00/100%) | |
150 | refcount bits: 64 | |
151 | No errors were found on the image. | |
d2eed8c6 | 152 | *** done |