提交 5dc567f8 编写于 作者: P Peter Krempa

tests: qemublock: Use bigger numbers as dummy capacity/physical

Actually test that the full range is available.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 f009ad67
......@@ -420,8 +420,8 @@ testQemuImageCreate(const void *opaque)
return -1;
/* fake some sizes */
src->capacity = 1337;
src->physical = 42;
src->capacity = UINT_MAX * 2ULL;
src->physical = UINT_MAX + 1ULL;
if (qemuDomainValidateStorageSource(src, data->qemuCaps) < 0)
return -1;
......
......@@ -2,7 +2,7 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.img",
"size": 42
"size": 4294967296
}
format:
......@@ -15,5 +15,5 @@ format:
"ivgen-hash-alg": "sha256",
"driver": "luks",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -2,7 +2,7 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.img",
"size": 42
"size": 4294967296
}
format:
......@@ -10,5 +10,5 @@ format:
"key-secret": "0123456789ABCDEF0123456789ABCDE-encalias",
"driver": "luks",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -17,12 +17,12 @@ protocol:
}
]
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -15,12 +15,12 @@ protocol:
}
]
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -9,12 +9,12 @@ protocol:
},
"vdi": "asdf/i.qcow2"
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -8,12 +8,12 @@ protocol:
"port": "1234"
}
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -2,14 +2,14 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337,
"size": 8589934590,
"backing-file": "/var/lib/libvirt/images/i.img",
"backing-fmt": "luks"
}
......@@ -2,14 +2,14 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337,
"size": 8589934590,
"backing-file": "nbd://example.com:1234",
"backing-fmt": "raw"
}
......@@ -2,14 +2,14 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337,
"size": 8589934590,
"backing-file": "/var/lib/libvirt/images/i.img",
"backing-fmt": "raw"
}
......@@ -2,14 +2,14 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337,
"size": 8589934590,
"backing-file": "/var/lib/libvirt/images/i.qcow2",
"backing-fmt": "qcow2",
"encrypt": {
......
......@@ -2,14 +2,14 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337,
"size": 8589934590,
"encrypt": {
"key-secret": "0123456789ABCDEF0123456789ABCDE-encalias",
"cipher-alg": "serpent-256",
......
......@@ -2,14 +2,14 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337,
"size": 8589934590,
"encrypt": {
"key-secret": "0123456789ABCDEF0123456789ABCDE-encalias",
"format": "luks"
......
......@@ -2,12 +2,12 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.qcow2",
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}
......@@ -2,7 +2,7 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.img",
"size": 42
"size": 4294967296
}
format:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册