Li Zhijian
f3839fda57
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>
2018-10-02 19:08:49 +02:00
..
2018-07-02 15:41:13 +02:00
2016-10-04 13:28:07 +01:00
2018-09-25 15:13:24 +01:00
2018-02-02 08:19:25 +01:00
2018-08-15 12:50:39 +02:00
2018-08-20 11:24:31 +01:00
2018-03-02 11:03:45 +00:00
2017-12-18 17:07:02 +03:00
2017-01-27 18:07:59 +01:00
2018-09-27 08:07:51 +02:00
2018-08-20 11:24:33 +01:00
2017-02-28 17:10:00 +00:00
2018-08-23 18:46:25 +02:00
2018-07-30 14:00:11 +02:00
2018-06-08 13:36:31 -04:00
2018-06-16 16:32:33 +10:00
2018-09-25 15:13:24 +01:00
2016-05-18 15:04:27 +03:00
2017-04-26 12:41:55 +10:00
2018-04-26 13:57:00 +01:00
2013-04-08 18:13:10 +02:00
2016-10-04 10:00:25 +02:00
2017-02-16 14:06:56 +01:00
2018-08-23 18:46:25 +02:00
2018-07-02 15:41:16 +02:00
2018-08-30 10:42:18 +10:00
2018-07-02 15:41:16 +02:00
2018-08-23 18:46:25 +02:00
2018-09-25 13:30:45 +01:00
2018-02-09 05:05:11 +01:00
2018-09-25 11:12:25 +10:00
2018-09-25 11:12:25 +10:00
2018-09-04 13:19:31 -07:00
2018-08-20 14:18:49 +02:00
2018-06-29 18:29:15 +01:00
2018-06-08 13:15:34 +01:00
2018-06-01 14:15:10 +02:00
2018-02-09 13:52:16 +01:00
2018-01-09 21:48:20 +00:00
2018-08-24 13:17:44 +01:00
2018-09-25 15:13:24 +01:00
2016-07-12 16:19:16 +02:00
2017-12-18 17:07:02 +03:00
2018-02-09 10:40:30 +00:00
2018-08-21 14:28:45 +10:00
2018-09-03 08:31:50 +02:00
2018-08-20 11:24:33 +01:00
2018-06-27 13:01:40 +01:00
2018-02-09 05:05:11 +01:00
2018-08-16 22:27:43 -03:00
2017-01-27 18:07:59 +01:00
2018-08-20 14:18:49 +02:00
2018-06-01 14:15:10 +02:00
2018-08-24 17:51:59 +02:00
2016-07-12 16:20:46 +02:00
2016-07-12 16:20:46 +02:00
2018-07-16 16:58:16 +02:00
2017-06-01 18:49:22 +02:00
2017-01-27 15:23:29 -08:00
2018-03-02 11:03:45 +00:00
2018-02-09 05:05:11 +01:00
2018-10-02 19:08:49 +02:00
2016-07-12 16:20:46 +02:00
2018-06-15 15:23:34 +01:00
2016-07-12 16:20:46 +02:00
2018-05-10 18:10:56 +01:00
2018-07-09 14:51:34 +01:00
2018-09-25 17:26:18 +02:00
2014-02-14 21:12:04 +01:00
2018-05-14 15:47:14 +08:00
2013-04-08 18:13:10 +02:00
2018-03-01 11:05:43 +00:00
2018-02-09 05:05:11 +01:00
2016-07-12 16:20:46 +02:00
2018-07-17 13:12:49 +01:00
2018-01-26 07:15:08 +01:00