linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Disable NFS client cache.
@ 2010-05-16  2:50 jupiter.hce
  2010-05-16 13:37 ` Guillaume Rousse
  0 siblings, 1 reply; 2+ messages in thread
From: jupiter.hce @ 2010-05-16  2:50 UTC (permalink / raw)
  To: linux-nfs

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.

Thank you.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Disable NFS client cache.
  2010-05-16  2:50 Disable NFS client cache jupiter.hce
@ 2010-05-16 13:37 ` Guillaume Rousse
  0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Rousse @ 2010-05-16 13:37 UTC (permalink / raw)
  To: linux-nfs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-16 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-16  2:50 Disable NFS client cache jupiter.hce
2010-05-16 13:37 ` Guillaume Rousse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).