block/nfs: refuse readahead if cache.direct is on
commit38f8d5e0251ae7d8257cf099cb3e5a375ef60378
authorPeter Lieven <pl@kamp.de>
Thu, 19 May 2016 12:48:02 +0000 (19 14:48 +0200)
committerJeff Cody <jcody@redhat.com>
Wed, 29 Jun 2016 02:52:45 +0000 (28 22:52 -0400)
tree4452acd1ef431416973b508cb4367145e7bfb83e
parent947eb2030eef73b7a66167a6244b11eeb4f109ff
block/nfs: refuse readahead if cache.direct is on

if we open a NFS export with disabled cache we should refuse
the readahead feature as it will cache data inside libnfs.

If a export was opened with readahead enabled it should
futher not be allowed to disable the cache while running.

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