]> git.proxmox.com Git - mirror_qemu.git/commit - block/nfs.c
block/nfs: add support for libnfs pagecache
authorPeter Lieven <pl@kamp.de>
Thu, 19 May 2016 12:48:03 +0000 (14:48 +0200)
committerJeff Cody <jcody@redhat.com>
Wed, 29 Jun 2016 02:52:45 +0000 (22:52 -0400)
commitd99b26c42a1375e41404b69c3214459e929af4e3
tree7db5433bb2292ebd02314451e316ae1f78712906
parent38f8d5e0251ae7d8257cf099cb3e5a375ef60378
block/nfs: add support for libnfs pagecache

upcoming libnfs will have support for a read cache that can
significantly help to speed up requests since libnfs by design
circumvents the kernel cache.

Example:
 qemu -cdrom nfs://127.0.0.1/iso/my.iso?pagecache=1024

The pagecache parameters takes the maximum amount of pages to
cache.  A page in libnfs is always the NFS_BLKSIZE which is
4KB.

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-id: 1463662083-20814-3-git-send-email-pl@kamp.de
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/nfs.c