Linux NFS development
 help / color / mirror / Atom feed
* disable caching in NFS
@ 2003-06-04 19:05 David Myer
  0 siblings, 0 replies; 3+ messages in thread
From: David Myer @ 2003-06-04 19:05 UTC (permalink / raw)
  To: nfs

I am testing linux NFS client functionality. I have a
script that vi a large file repeatively after
mounting, how do I make sure that each time it is
getting file from the server and not the cached
version ?

Thanks
Dave

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* RE: disable caching in NFS
@ 2003-06-04 21:10 Lever, Charles
  0 siblings, 0 replies; 3+ messages in thread
From: Lever, Charles @ 2003-06-04 21:10 UTC (permalink / raw)
  To: David Myer, nfs

use fcntl to lock and unlock the file.
or unmount and remount.

> -----Original Message-----
> From: David Myer [mailto:davidmyer800@yahoo.com]
> Sent: Wednesday, June 04, 2003 3:06 PM
> To: nfs@lists.sourceforge.net
> Subject: [NFS] disable caching in NFS
>=20
>=20
> I am testing linux NFS client functionality. I have a
> script that vi a large file repeatively after
> mounting, how do I make sure that each time it is
> getting file from the server and not the cached
> version ?
>=20
> Thanks
> Dave
>=20
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of=20
> TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
>=20


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* RE: disable caching in NFS
@ 2003-06-06 20:54 Mike Eisler
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Eisler @ 2003-06-06 20:54 UTC (permalink / raw)
  To: nfs

The application (vi) is opening the file, and
the Linux NFS client should be implementing
close-to-open semantics (meaning that the client will
revalidate its cache against the server upon every open).
Thus, this should not be necessary. Of course, if the server does not
update the file's modification time upon every write, or
if it does, but uses coarse granularity (e.g. one second),
then close-to-open semantics won't work. In that
event, the strategies Chuck Lever mentioned are among
what you can use to force the cache to be flushed or
unused.




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2003-06-06 20:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-06 20:54 disable caching in NFS Mike Eisler
  -- strict thread matches above, loose matches on Subject: below --
2003-06-04 21:10 Lever, Charles
2003-06-04 19:05 David Myer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox