]> Git Repo - qemu.git/blame - tests/qemu-iotests/049.out
iotests: Check dirty bitmap statistics in 124
[qemu.git] / tests / qemu-iotests / 049.out
CommitLineData
4dc9f9d6
KW
1QA output created by 049
2=== Check correct interpretation of suffixes for image size ===
3
4== 1. Traditional size parameter ==
5
6qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024
0cb8d47b 7Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
8
9qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024b
0cb8d47b 10Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
11
12qemu-img create -f qcow2 TEST_DIR/t.qcow2 1k
0cb8d47b 13Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
14
15qemu-img create -f qcow2 TEST_DIR/t.qcow2 1K
0cb8d47b 16Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
17
18qemu-img create -f qcow2 TEST_DIR/t.qcow2 1M
0cb8d47b 19Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
20
21qemu-img create -f qcow2 TEST_DIR/t.qcow2 1G
0cb8d47b 22Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
23
24qemu-img create -f qcow2 TEST_DIR/t.qcow2 1T
0cb8d47b 25Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
26
27qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0
0cb8d47b 28Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
29
30qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0b
0cb8d47b 31Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
32
33qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5k
0cb8d47b 34Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
35
36qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5K
0cb8d47b 37Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
38
39qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5M
0cb8d47b 40Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
41
42qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5G
0cb8d47b 43Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
44
45qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5T
0cb8d47b 46Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
47
48== 2. Specifying size via -o ==
49
50qemu-img create -f qcow2 -o size=1024 TEST_DIR/t.qcow2
0cb8d47b 51Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
52
53qemu-img create -f qcow2 -o size=1024b TEST_DIR/t.qcow2
0cb8d47b 54Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
55
56qemu-img create -f qcow2 -o size=1k TEST_DIR/t.qcow2
0cb8d47b 57Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
58
59qemu-img create -f qcow2 -o size=1K TEST_DIR/t.qcow2
0cb8d47b 60Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
61
62qemu-img create -f qcow2 -o size=1M TEST_DIR/t.qcow2
0cb8d47b 63Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
64
65qemu-img create -f qcow2 -o size=1G TEST_DIR/t.qcow2
0cb8d47b 66Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
67
68qemu-img create -f qcow2 -o size=1T TEST_DIR/t.qcow2
0cb8d47b 69Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
70
71qemu-img create -f qcow2 -o size=1024.0 TEST_DIR/t.qcow2
0cb8d47b 72Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
73
74qemu-img create -f qcow2 -o size=1024.0b TEST_DIR/t.qcow2
0cb8d47b 75Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
76
77qemu-img create -f qcow2 -o size=1.5k TEST_DIR/t.qcow2
0cb8d47b 78Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
79
80qemu-img create -f qcow2 -o size=1.5K TEST_DIR/t.qcow2
0cb8d47b 81Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
82
83qemu-img create -f qcow2 -o size=1.5M TEST_DIR/t.qcow2
0cb8d47b 84Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
85
86qemu-img create -f qcow2 -o size=1.5G TEST_DIR/t.qcow2
0cb8d47b 87Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
88
89qemu-img create -f qcow2 -o size=1.5T TEST_DIR/t.qcow2
0cb8d47b 90Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
91
92== 3. Invalid sizes ==
93
94qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1024
95qemu-img: Image size must be less than 8 EiB!
96
97qemu-img create -f qcow2 -o size=-1024 TEST_DIR/t.qcow2
9e19ad4e 98qemu-img: Value '-1024' is out of range for parameter 'size'
21278992 99qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
4dc9f9d6
KW
100
101qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1k
102qemu-img: Image size must be less than 8 EiB!
103
104qemu-img create -f qcow2 -o size=-1k TEST_DIR/t.qcow2
9e19ad4e 105qemu-img: Value '-1k' is out of range for parameter 'size'
21278992 106qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
4dc9f9d6
KW
107
108qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1kilobyte
7486458c 109qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
5e00984a 110qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
4dc9f9d6
KW
111
112qemu-img create -f qcow2 -o size=1kilobyte TEST_DIR/t.qcow2
9e19ad4e
MA
113qemu-img: Parameter 'size' expects a non-negative number below 2^64
114Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
115and exabytes, respectively.
116qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
4dc9f9d6
KW
117
118qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar
7486458c 119qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
5e00984a 120qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
4dc9f9d6
KW
121
122qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
9e19ad4e
MA
123qemu-img: Parameter 'size' expects a non-negative number below 2^64
124Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
125and exabytes, respectively.
83d0521a 126qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
4dc9f9d6
KW
127
128== Check correct interpretation of suffixes for cluster size ==
129
130qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
0cb8d47b 131Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
132
133qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
0cb8d47b 134Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
135
136qemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M
0cb8d47b 137Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
138
139qemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M
0cb8d47b 140Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
141
142qemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M
0cb8d47b 143Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1048576 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
144
145qemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M
0cb8d47b 146Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
147
148qemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M
0cb8d47b 149Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
150
151qemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M
0cb8d47b 152Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=512 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
153
154qemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M
0cb8d47b 155Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=512 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
156
157qemu-img create -f qcow2 -o cluster_size=0.5M TEST_DIR/t.qcow2 64M
0cb8d47b 158Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=524288 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
159
160== Check compat level option ==
161
162qemu-img create -f qcow2 -o compat=0.10 TEST_DIR/t.qcow2 64M
0cb8d47b 163Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
164
165qemu-img create -f qcow2 -o compat=1.1 TEST_DIR/t.qcow2 64M
0cb8d47b 166Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
167
168qemu-img create -f qcow2 -o compat=0.42 TEST_DIR/t.qcow2 64M
2c78857b 169qemu-img: TEST_DIR/t.qcow2: Invalid compatibility level: '0.42'
0cb8d47b 170Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.42 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
171
172qemu-img create -f qcow2 -o compat=foobar TEST_DIR/t.qcow2 64M
2c78857b 173qemu-img: TEST_DIR/t.qcow2: Invalid compatibility level: 'foobar'
0cb8d47b 174Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=foobar cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
175
176== Check preallocation option ==
177
178qemu-img create -f qcow2 -o preallocation=off TEST_DIR/t.qcow2 64M
0cb8d47b 179Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 preallocation=off lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
180
181qemu-img create -f qcow2 -o preallocation=metadata TEST_DIR/t.qcow2 64M
0cb8d47b 182Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 preallocation=metadata lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
183
184qemu-img create -f qcow2 -o preallocation=1234 TEST_DIR/t.qcow2 64M
ffeaac9b 185qemu-img: TEST_DIR/t.qcow2: invalid parameter value: 1234
0cb8d47b 186Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 preallocation=1234 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
187
188== Check encryption option ==
189
190qemu-img create -f qcow2 -o encryption=off TEST_DIR/t.qcow2 64M
06d05fa7 191Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6 192
b25b387f
DB
193qemu-img create -f qcow2 --object secret,id=sec0,data=123456 -o encryption=on,encrypt.key-secret=sec0 TEST_DIR/t.qcow2 64M
194Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=on encrypt.key-secret=sec0 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
195
196== Check lazy_refcounts option (only with v3) ==
197
198qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=off TEST_DIR/t.qcow2 64M
0cb8d47b 199Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
200
201qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on TEST_DIR/t.qcow2 64M
0cb8d47b 202Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 cluster_size=65536 lazy_refcounts=on refcount_bits=16
4dc9f9d6
KW
203
204qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=off TEST_DIR/t.qcow2 64M
0cb8d47b 205Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
206
207qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=on TEST_DIR/t.qcow2 64M
2c78857b 208qemu-img: TEST_DIR/t.qcow2: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
0cb8d47b 209Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 cluster_size=65536 lazy_refcounts=on refcount_bits=16
4dc9f9d6
KW
210
211*** done
This page took 0.300361 seconds and 4 git commands to generate.