]> git.proxmox.com Git - mirror_qemu.git/commit - hw/core/loader.c
change get_image_size return type to int64_t
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Thu, 13 Sep 2018 10:07:13 +0000 (18:07 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:08:49 +0000 (19:08 +0200)
commitf3839fda5771596152b75dd1e1a6d050e6e6e380
tree9ed6a77cef8a1165d2cbc20a3b2cf11ea2db03b5
parent90a84d131c09096bdc424027526b575fe6a8a8d5
change get_image_size return type to int64_t

Previously, if the size of initrd >=2G, qemu exits with error:
root@haswell-OptiPlex-9020:/home/lizj# /home/lizhijian/lkp/qemu-colo/x86_64-softmmu/qemu-system-x86_64 -kernel ./vmlinuz-4.16.0-rc4 -initrd large.cgz -nographic
qemu: error reading initrd large.cgz: No such file or directory
root@haswell-OptiPlex-9020:/home/lizj# du -sh large.cgz
2.5G large.cgz

this patch changes the caller side that use this function to calculate
size of initrd file as well.

v2: update error message and int64_t printing format

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Message-Id: <1536833233-14121-1-git-send-email-lizhijian@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/alpha/dp264.c
hw/core/loader.c
hw/hppa/machine.c
hw/i386/pc.c
hw/mips/mips_fulong2e.c
hw/mips/mips_malta.c
hw/mips/mips_mipssim.c
hw/mips/mips_r4k.c
hw/moxie/moxiesim.c
include/hw/loader.h