All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Rousse <Guillaume.Rousse@inria.fr>
To: linux-nfs@vger.kernel.org
Subject: Re: Disable NFS client cache.
Date: Sun, 16 May 2010 15:37:41 +0200	[thread overview]
Message-ID: <4BEFF525.9090400@inria.fr> (raw)
In-Reply-To: <20100516025055.GC3872@gmail.com>

Le 16/05/2010 04:50, jupiter.hce@gmail.com a écrit :
> Hi,
> 
> Could you please advice how to disable NFS client cache in mount
> command?
> 
> I have an application to use NFS over FUSE, if I keep typing "ls" in
> the same directory, the client NFS only sent GETATT, no more READDIR,
> all directory contents displayed on screen came from NFS cache. That
> caused many problems and I'd like to disable NFS client cache. But it
> did not work when I add "-o noac" option to mount. Also I don't want
> NFS GETATT retransmission during file copy. Appreciate your advice and
> sample examples to mount.
If you're speaking of the new fs-cache feature of 2.6.30 kernel, and not
of builtin caching of NFS (the one managed by -o noac option), the only
way to disable it AFAIK is to prevent fs-cache module loading in
modutils configuration, using either of:
- blacklist fs-cache
- install fs-cache /bin/true
- alias fs-cache null

-- 
BOFH excuse #302:

microelectronic Riemannian curved-space fault in write-only file system

      reply	other threads:[~2010-05-16 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-16  2:50 Disable NFS client cache jupiter.hce
2010-05-16 13:37 ` Guillaume Rousse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BEFF525.9090400@inria.fr \
    --to=guillaume.rousse@inria.fr \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.