Re: [Qemu-block] [PATCH V3] block/nfs: cache allocated filesize for read-only files

2015-08-31 Thread Jeff Cody
On Thu, Aug 27, 2015 at 12:30:41PM +0200, Peter Lieven wrote: > If the file is readonly its not expected to grow so > save the blocking call to nfs_fstat_async and use > the value saved at connection time. Also important > the monitor (and thus the main loop) will not hang > if block device info

Re: [Qemu-block] [PATCH V3] block/nfs: cache allocated filesize for read-only files

2015-08-29 Thread Max Reitz
On 27.08.2015 12:30, Peter Lieven wrote: If the file is readonly its not expected to grow so save the blocking call to nfs_fstat_async and use the value saved at connection time. Also important the monitor (and thus the main loop) will not hang if block device info is queried and the NFS

Re: [Qemu-block] [PATCH V3] block/nfs: cache allocated filesize for read-only files

2015-08-28 Thread Jeff Cody
On Thu, Aug 27, 2015 at 12:30:41PM +0200, Peter Lieven wrote: If the file is readonly its not expected to grow so save the blocking call to nfs_fstat_async and use the value saved at connection time. Also important the monitor (and thus the main loop) will not hang if block device info is

[Qemu-block] [PATCH V3] block/nfs: cache allocated filesize for read-only files

2015-08-27 Thread Peter Lieven
If the file is readonly its not expected to grow so save the blocking call to nfs_fstat_async and use the value saved at connection time. Also important the monitor (and thus the main loop) will not hang if block device info is queried and the NFS share is unresponsive. Signed-off-by: Peter