Messages in this thread | | | Date | Thu, 18 Jun 1998 20:42:11 +0200 (CEST) | From | Rik van Riel <> | Subject | Re: 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
| |