]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storagefile: set size field of ploop to 8
authorJán Tomko <jtomko@redhat.com>
Wed, 18 May 2022 13:59:36 +0000 (15:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 22 Jun 2022 13:29:44 +0000 (15:29 +0200)
commita55abe6c5120bd7614a4c9b2027eeab8d6c3bd54
tree27dea5f0a1476d5f10584a8bf5b83d73ea01d32e
parent74077a651b3bcabf8bcfb2cdefa697fc4a665ff9
storagefile: set size field of ploop to 8

For all file formats, the length of the size field is assumed
and hardcoded to be 8 bytes.

Fix the length for the ploop format - since we specify the offset,
we read 8 bytes of the length, not 0.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage_file/storage_file_probe.c