mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: qemublock: Use bigger numbers as dummy capacity/physical
Actually test that the full range is available. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f009ad6740
commit
5dc567f80a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user