lkml.org 
[lkml]   [1998]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: unreliable sync? [Re: ext2 fs not properly updated upon dismount.]
On Thu, 18 Jun 1998, Richard B. Johnson wrote:
> On Thu, 18 Jun 1998, Pavel Machek wrote:
> >
> > My idea: Last time I checked, linux was not guaranteeing that all data
> > are on disk after sync. Sync just means that data are scheduled in que
> > somewhere. So you have to sleep 1 after sync, for it to work.
>
> I will do it.

From linux/fs/buffer.c (line 160 for v2.1.101):

static in sync_buffers(kdev_t dev, int wait)
{
...
/* One pass for no-wait, three for wait:
* 0) write out all dirty, unlocked buffers;
* 1) write out all dirty buffers, waiting if locked;
* 2) wait for completion by waiting for all buffers to unlock.
*/
...
}

Looks pretty clear to me...

Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.094 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site