On 11/04/2015 07:21 AM, Eduardo Habkost wrote:
On Mon, Nov 02, 2015 at 05:13:13PM +0800, Xiao Guangrong wrote:
+size_t qemu_file_getlength(const char *file, Error **errp)
+ int64_t size;
+ return size;
Can you guarantee that SIZE_MAX >= INT64_MAX on all platforms supported
Actually, this function is abstracted from the common function, raw_getlength(),
in raw-posix.c whose return value is int64_t.
And i think int64_t is large enough for block devices.
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html