summary refs log tree commit diff stats
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2015-08-27 12:30:41 +0200
committerJeff Cody <jcody@redhat.com>2015-09-25 08:37:07 -0400
commit18a8056e0bc744e5dd2bb5cb998423b607d99f19 (patch)
tree1be539c64fd3ef14f0c36de0dc04847fef092244 /scripts/qapi.py
parent055c6f912c8d3cd9a901972ae432c47e5872f71a (diff)
downloadfocaccia-qemu-18a8056e0bc744e5dd2bb5cb998423b607d99f19.tar.gz
focaccia-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 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions