linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* O_DIRECT, O_SYNC, or fsync() on NFS mounts?
@ 2010-11-18 23:34 Moazam Raja
  2010-11-19 19:24 ` Trond Myklebust
  0 siblings, 1 reply; 11+ messages in thread
From: Moazam Raja @ 2010-11-18 23:34 UTC (permalink / raw)
  To: linux-nfs

Hi all,

I'm currently exporting a ZFS filesystem on Solaris 11 Express as NFS.
I have a Linux client mounting that NFS v3 filesystem with the
proto=tcp option.

My question is, what's the safest and most reliable way to write data
to this NFS mount on a Linux client? Should my application code use
O_DIRECT, or O_SYNC? Or should I be doing a write() and a fsync()? I
want to make sure that data is not lost and is truly committed, while
keeping decent performance (of course).


-Moazam

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

end of thread, other threads:[~2010-11-22 18:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 23:34 O_DIRECT, O_SYNC, or fsync() on NFS mounts? Moazam Raja
2010-11-19 19:24 ` Trond Myklebust
2010-11-19 19:55   ` Chuck Lever
2010-11-19 20:04   ` J. Bruce Fields
2010-11-19 21:26     ` Trond Myklebust
2010-11-19 21:48       ` J. Bruce Fields
2010-11-21 10:46       ` Christoph Hellwig
2010-11-21 19:31         ` Moazam Raja
2010-11-21 20:01         ` Trond Myklebust
     [not found]   ` <AANLkTi=AV20AsUKOGfVg6M92T8LfPLuuyrG_hQESw_RU@mail.gmail.com>
2010-11-20 23:54     ` Trond Myklebust
     [not found]       ` <AANLkTikFfdMWs0b4V1doVYUx1T96+ef8-dMUZf3v8cW9@mail.gmail.com>
2010-11-22 18:04         ` Trond Myklebust

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).