public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NFS: msync required for data writes to server?
@ 2005-05-12 19:21 Linda Dunaphant
  2005-05-13  0:57 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Linda Dunaphant @ 2005-05-12 19:21 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-kernel

Hi Trond,

On our 2.6.9 based systems, data written using mmap(MAP_SHARED) on a NFS
client is *never* being pushed out to the server if an explicit msync call
is not issued before the munmap.

On 11/12/04, there was a message thread concerning NFS corruption when
using mmap/munmap:

http://marc.theaimsgroup.com/?l=linux-nfs&m=110028817508318&w=2

In this thread you stated:

     mmap() offers absolutely NO guarantees that the file will be synced to
     disk on close. Use msync(MS_SYNC) if you want such a guarantee.

Are you saying that the data will *never* be written to the server?  Could
you please clarify your position on this further? 

Thanks!
Linda



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

end of thread, other threads:[~2005-05-13 23:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-12 19:21 NFS: msync required for data writes to server? Linda Dunaphant
2005-05-13  0:57 ` Andrew Morton
2005-05-13  2:21   ` Linda Dunaphant
2005-05-13  2:42     ` Andrew Morton
2005-05-13  3:41       ` Linda Dunaphant
2005-05-13  3:48       ` Trond Myklebust
2005-05-13 23:57         ` Linda Dunaphant

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