public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Does Linux sync(2) wait?
@ 2004-03-21 10:31 Frank Cusack
  0 siblings, 0 replies; 6+ messages in thread
From: Frank Cusack @ 2004-03-21 10:31 UTC (permalink / raw)
  To: lkml

Looking at 2.4 and 2.6 sources, Linux does appear to wait before returning.
I'm especially interested if NFS data is sent to the server.  (I want to
be able to take a stable snapshot of a netapp volume.)

But on my RHL 9 system, I have 3 different man pages and an info page,
all of which say something different.

sync(2) says:

       According  to the standard specification (e.g., SVID), sync() schedules
       the writes, but may return before the actual writing is done.  However,
       since  version  1.3.20  Linux does actually wait. 

sync(8) says:

       On Linux, sync is only guaranteed to  schedule  the  dirty  blocks  for
       writing;  it  can  actually take a short time before all the blocks are
       finally written.  

sync(1) is in the middle and doesn't really say anything, it refers to
the info page which also isn't specific.

/fc

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <1C8xa-5lk-5@gated-at.bofh.it>]

end of thread, other threads:[~2004-03-22 14:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-21 10:31 Does Linux sync(2) wait? Frank Cusack
     [not found] <1C8xa-5lk-5@gated-at.bofh.it>
2004-03-21 15:30 ` Pascal Schmidt
2004-03-22  0:59   ` Chris Wedgwood
2004-03-22  3:44     ` Chris Friesen
2004-03-22 12:08       ` Stefan Smietanowski
2004-03-22 14:27         ` Pascal Schmidt

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