mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
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>
This commit is contained in:
parent
74077a651b
commit
a55abe6c51
@ -296,7 +296,7 @@ static struct FileTypeInfo const fileTypeInfo[] = {
|
||||
[VIR_STORAGE_FILE_VHD] = { 0, NULL, LV_LITTLE_ENDIAN,
|
||||
-1, 0, {0}, 0, 0, 0, NULL, NULL, NULL, NULL },
|
||||
[VIR_STORAGE_FILE_PLOOP] = { 0, "WithouFreSpacExt", LV_LITTLE_ENDIAN,
|
||||
-2, 0, {0}, PLOOP_IMAGE_SIZE_OFFSET, 0,
|
||||
-2, 0, {0}, PLOOP_IMAGE_SIZE_OFFSET, 8,
|
||||
PLOOP_SIZE_MULTIPLIER, NULL, NULL, NULL, NULL },
|
||||
|
||||
/* All formats with a backing store probe below here */
|
||||
|
Loading…
x
Reference in New Issue
Block a user