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>
Please register or sign in to comment