]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qemu-iotests/049.out
Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging
[mirror_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
06d05fa7 7Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
8
9qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024b
06d05fa7 10Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
11
12qemu-img create -f qcow2 TEST_DIR/t.qcow2 1k
06d05fa7 13Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
14
15qemu-img create -f qcow2 TEST_DIR/t.qcow2 1K
06d05fa7 16Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
17
18qemu-img create -f qcow2 TEST_DIR/t.qcow2 1M
06d05fa7 19Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
20
21qemu-img create -f qcow2 TEST_DIR/t.qcow2 1G
06d05fa7 22Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
23
24qemu-img create -f qcow2 TEST_DIR/t.qcow2 1T
06d05fa7 25Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
26
27qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0
06d05fa7 28Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
29
30qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0b
06d05fa7 31Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
32
33qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5k
06d05fa7 34Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
35
36qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5K
06d05fa7 37Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
38
39qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5M
06d05fa7 40Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
41
42qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5G
06d05fa7 43Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
44
45qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5T
06d05fa7 46Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 encryption=off 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
06d05fa7 51Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
52
53qemu-img create -f qcow2 -o size=1024b TEST_DIR/t.qcow2
06d05fa7 54Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
55
56qemu-img create -f qcow2 -o size=1k TEST_DIR/t.qcow2
06d05fa7 57Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
58
59qemu-img create -f qcow2 -o size=1K TEST_DIR/t.qcow2
06d05fa7 60Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
61
62qemu-img create -f qcow2 -o size=1M TEST_DIR/t.qcow2
06d05fa7 63Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
64
65qemu-img create -f qcow2 -o size=1G TEST_DIR/t.qcow2
06d05fa7 66Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
67
68qemu-img create -f qcow2 -o size=1T TEST_DIR/t.qcow2
06d05fa7 69Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 encryption=off 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
06d05fa7 72Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off 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
06d05fa7 75Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off 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
06d05fa7 78Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off 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
06d05fa7 81Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off 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
06d05fa7 84Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 encryption=off 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
06d05fa7 87Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 encryption=off 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
06d05fa7 90Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 encryption=off 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
21278992
BT
98qemu-img: Parameter 'size' expects a non-negative number below 2^64
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
21278992
BT
105qemu-img: Parameter 'size' expects a non-negative number below 2^64
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
06d05fa7 113Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
114
115qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar
7486458c 116qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
5e00984a 117qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
4dc9f9d6
KW
118
119qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
120qemu-img: Parameter 'size' expects a size
83d0521a 121qemu-img: TEST_DIR/t.qcow2: Invalid options for file format 'qcow2'
4dc9f9d6
KW
122
123== Check correct interpretation of suffixes for cluster size ==
124
125qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
06d05fa7 126Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
127
128qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
06d05fa7 129Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
130
131qemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M
06d05fa7 132Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
133
134qemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M
06d05fa7 135Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
136
137qemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M
06d05fa7 138Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1048576 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
139
140qemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M
06d05fa7 141Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
142
143qemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M
06d05fa7 144Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
145
146qemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M
06d05fa7 147Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=512 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
148
149qemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M
06d05fa7 150Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=512 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
151
152qemu-img create -f qcow2 -o cluster_size=0.5M TEST_DIR/t.qcow2 64M
06d05fa7 153Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=524288 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
154
155== Check compat level option ==
156
157qemu-img create -f qcow2 -o compat=0.10 TEST_DIR/t.qcow2 64M
fe646693 158Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
159
160qemu-img create -f qcow2 -o compat=1.1 TEST_DIR/t.qcow2 64M
fe646693 161Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
162
163qemu-img create -f qcow2 -o compat=0.42 TEST_DIR/t.qcow2 64M
2c78857b 164qemu-img: TEST_DIR/t.qcow2: Invalid compatibility level: '0.42'
fe646693 165Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.42 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
166
167qemu-img create -f qcow2 -o compat=foobar TEST_DIR/t.qcow2 64M
2c78857b 168qemu-img: TEST_DIR/t.qcow2: Invalid compatibility level: 'foobar'
fe646693 169Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=foobar encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
170
171== Check preallocation option ==
172
173qemu-img create -f qcow2 -o preallocation=off TEST_DIR/t.qcow2 64M
fe646693 174Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation=off lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
175
176qemu-img create -f qcow2 -o preallocation=metadata TEST_DIR/t.qcow2 64M
fe646693 177Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation=metadata lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
178
179qemu-img create -f qcow2 -o preallocation=1234 TEST_DIR/t.qcow2 64M
ffeaac9b 180qemu-img: TEST_DIR/t.qcow2: invalid parameter value: 1234
fe646693 181Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation=1234 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
182
183== Check encryption option ==
184
185qemu-img create -f qcow2 -o encryption=off TEST_DIR/t.qcow2 64M
06d05fa7 186Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
187
188qemu-img create -f qcow2 -o encryption=on TEST_DIR/t.qcow2 64M
a1f688f4
MA
189qemu-img: Encrypted images are deprecated
190Support for them will be removed in a future release.
191You can use 'qemu-img convert' to convert your image to an unencrypted one.
192qemu-img: Encrypted images are deprecated
193Support for them will be removed in a future release.
194You can use 'qemu-img convert' to convert your image to an unencrypted one.
06d05fa7 195Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=on cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
196
197== Check lazy_refcounts option (only with v3) ==
198
199qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=off TEST_DIR/t.qcow2 64M
fe646693 200Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
201
202qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on TEST_DIR/t.qcow2 64M
fe646693 203Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 encryption=off cluster_size=65536 lazy_refcounts=on refcount_bits=16
4dc9f9d6
KW
204
205qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=off TEST_DIR/t.qcow2 64M
fe646693 206Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
4dc9f9d6
KW
207
208qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=on TEST_DIR/t.qcow2 64M
2c78857b 209qemu-img: TEST_DIR/t.qcow2: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
fe646693 210Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 encryption=off cluster_size=65536 lazy_refcounts=on refcount_bits=16
4dc9f9d6
KW
211
212*** done