summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Lieven2015-08-27 12:30:41 +0200
committerJeff Cody2015-09-25 14:37:07 +0200
commit18a8056e0bc744e5dd2bb5cb998423b607d99f19 (patch)
tree1be539c64fd3ef14f0c36de0dc04847fef092244 /include
parentblock/nfs: fix calculation of allocated file size (diff)
downloadqemu-18a8056e0bc744e5dd2bb5cb998423b607d99f19.tar.gz
qemu-18a8056e0bc744e5dd2bb5cb998423b607d99f19.tar.xz
qemu-18a8056e0bc744e5dd2bb5cb998423b607d99f19.zip
block/nfs: cache allocated filesize for read-only files
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 Lieven <pl@kamp.de> Reviewed-by: Jeff Cody <jcody@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 1440671441-7978-1-git-send-email-pl@kamp.de Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions