lkml.org 
[lkml]   [2005]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Why is one sync() not enough?
hoi :)

On Tue, Jun 14, 2005 at 11:41:41AM +0200, Nico Schottelius wrote:
> When my system shuts down and init calls sync() and after that
> umount and then reboot, the filesystem is left in an unclean state.
>
> If I do sync() two times (one before umount, one after umount) it
> seems to work.

unmounting the filesystem writes to the disk.
If you don't wait for those writes to reach the disk, then
you still have a dirty filesystem.

--
Martin Waitz
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-06-14 15:01    [W:0.117 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site