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:
Peter Krempa 2019-08-30 16:36:15 +02:00
parent f009ad6740
commit 5dc567f80a
15 changed files with 29 additions and 29 deletions

View File

@ -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;

View File

@ -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
}

View File

@ -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
}

View File

@ -17,12 +17,12 @@ protocol:
}
]
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}

View File

@ -15,12 +15,12 @@ protocol:
}
]
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}

View File

@ -9,12 +9,12 @@ protocol:
},
"vdi": "asdf/i.qcow2"
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}

View File

@ -8,12 +8,12 @@ protocol:
"port": "1234"
}
},
"size": 42
"size": 4294967296
}
format:
{
"driver": "qcow2",
"file": "0123456789ABCDEF0123456789ABCDE",
"size": 1337
"size": 8589934590
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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": {

View File

@ -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",

View File

@ -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"

View File

@ -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
}

View File

@ -2,7 +2,7 @@ protocol:
{
"driver": "file",
"filename": "/var/lib/libvirt/images/i.img",
"size": 42
"size": 4294967296
}
format: