qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] hostmem-file: add a property 'notrunc' to avoid


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] hostmem-file: add a property 'notrunc' to avoid data corruption
Date: Thu, 20 Oct 2016 15:55:22 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 20.10.2016 um 14:34 hat Igor Mammedov geschrieben:
> >  #ifdef __linux__
> > +static uint64_t get_file_size(const char *path, Error **errp)
> Maybe QEMU laredy has an utility to do it that could be shared,
> CCing block maintainers.

We have quite a bit of code for determining the right size of a file
(including block devices) on different platforms and devices. See the
.bdrv_getlength implementations in raw-posix.c and raw-win32.c.

However, none of them are made for consumption outside the block layer.

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]