]> xenbits.xensource.com Git - libvirt.git/commit
schema: Allow '0' offset for a <slice> of <disk>
authorPeter Krempa <pkrempa@redhat.com>
Fri, 21 May 2021 12:53:43 +0000 (14:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 May 2021 18:26:20 +0000 (20:26 +0200)
commitfac773fab93dc526513d7ced40e1d685e193705c
treec415adfb4348c018392d626df41e0f7c20874a7a
parent4b3dc045b9afeef0d3ac4d14c8c999c2b7398cf8
schema: Allow '0' offset for a <slice> of <disk>

Using slice to cut off the end of the image is a perfectly vaid
configuration. Use 'unsignedInt' instead of 'positiveInteger' for the
'offset' attribute in the XML schema and modify one test case to cover
this use case.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1960993
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
docs/schemas/domaincommon.rng
tests/qemuxml2argvdata/disk-slices.x86_64-latest.args
tests/qemuxml2argvdata/disk-slices.xml
tests/qemuxml2xmloutdata/disk-slices.x86_64-latest.xml