public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frank Cusack <fcusack@fcusack.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: Does Linux sync(2) wait?
Date: Sun, 21 Mar 2004 02:31:08 -0800	[thread overview]
Message-ID: <20040321023107.A31553@google.com> (raw)

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

             reply	other threads:[~2004-03-21 10:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-21 10:31 Frank Cusack [this message]
     [not found] <1C8xa-5lk-5@gated-at.bofh.it>
2004-03-21 15:30 ` Does Linux sync(2) wait? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040321023107.A31553@google.com \
    --to=fcusack@fcusack.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox