linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* when are buffers/caches flushed?
@ 2005-08-18 10:51 Steven Scholz
  2005-08-18 11:24 ` Tejun Heo
  0 siblings, 1 reply; 9+ messages in thread
From: Steven Scholz @ 2005-08-18 10:51 UTC (permalink / raw)
  To: linux-ide

Hi there,

According to an (old) man page of sync(2)

        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.  (This still does not guarantee
        data integrity: modern disks have large caches.)

How about recent kernels? Does sync() block until buffers are flushed?
How can I find out if the disk caches are actually flushed?

I want to make sure that all data is flushed to my disk drive before powering 
down the system.

Thanks.

--
Steven


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

end of thread, other threads:[~2005-08-18 13:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18 10:51 when are buffers/caches flushed? Steven Scholz
2005-08-18 11:24 ` Tejun Heo
2005-08-18 11:34   ` Steven Scholz
2005-08-18 11:59     ` Tejun Heo
2005-08-18 12:12       ` Steven Scholz
2005-08-18 12:19         ` Tejun Heo
2005-08-18 12:24       ` Bartlomiej Zolnierkiewicz
2005-08-18 12:44         ` Tejun Heo
2005-08-18 13:03           ` Bartlomiej Zolnierkiewicz

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