From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd705,2481588b2317173b,start X-Google-Attributes: gidfd705,public X-Google-Thread: 1164f8,2481588b2317173b,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-09-04 22:27:25 PST Path: gmdzi!unido!fauern!iraun1.ira.uka.de!sol.ctr.columbia.edu!samsung!munnari.oz.au!comp.vuw.ac.nz!rata.vuw.ac.nz!rata.vuw.ac.nz!ellis From: ellis@rata.vuw.ac.nz (Brian Ellis) Newsgroups: alt.folklore.computers,comp.sys.dec Subject: Re: why three syncs? Keywords: bellman sync three Message-ID: <1991Sep4.225726.26630@rata.vuw.ac.nz> Date: 4 Sep 91 22:57:26 GMT References: <1991Sep04.194822.22074@uvmark.uucp> Sender: news@rata.vuw.ac.nz (USENET News System) Organization: Victoria University of Wellington Xref: gmdzi alt.folklore.computers:33418 comp.sys.dec:25170 Nntp-Posting-Host: rata.vuw.ac.nz In article <1991Sep04.194822.22074@uvmark.uucp>, tom@uvmark.uucp (Tom Rauschenbach) writes: |> I've noticed that most Un*x folks type the sync command three times before |> shutting down a system. Is there a folkloric reason for this ? A technical |> one. I have a guess, and I wonder if it can be confirmed or refuted. Quoting from sync(2) from the Ultrix 4.1 man pages... The sync system call causes all information in memory that should be on disk to be written out. This includes modified super- blocks, modified i-nodes, and delayed block I/O. Programs that examine a file system, for example, fsck or df, use the sync system call. The writing, although scheduled, is not necessarily complete upon return from sync. The second sentence of the second paragraph suggests why three syncs are required before shutting down a Unix system. Brian. -- Brian Ellis Computing Services Centre Domain: Brian.Ellis@vuw.ac.nz Victoria University of Wellington Bang paths... grrrr!!!!! P.O Box 600, New Zealand. What! - no cute .sig ???