Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/12/84; site desint.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!sdcrdcf!trwrb!desint!geoff From: geoff@desint.UUCP (Geoff Kuenning) Newsgroups: net.unix-wizards Subject: why didn't sync work for me? Message-ID: <325@desint.UUCP> Date: Wed, 23-Jan-85 23:52:57 EST Article-I.D.: desint.325 Posted: Wed Jan 23 23:52:57 1985 Date-Received: Sun, 27-Jan-85 05:38:11 EST Reply-To: geoff@desint.UUCP (Geoff Kuenning) Organization: his home computer, Manhattan Beach, CA Lines: 23 I have a single-user desktop machine. One of my .cshrc aliases is the following: alias s sync \; sync I also run a pseudo-job-control program that gives me four tty ports on my console. My standard shutdown procedure is to shift to each suffix in turn, checking to be sure I don't have an editor running or something, and typing 's' in each one. I finish in the suffix I use for superuser work, and in that I type 's' at least once, and frequently four or five times. Then I run a little program that reads a file in /etc, executes a sync(2) primitive, and runs an ioctl on each disk to move the arm to the shipping position. All well and good, right? Well, this morning when I booted, fsck found an unconnected inode on the root filesystem. I reconnected it, and checked it out -- it contained a sort temp file that was at least an hour old at the time of the boot. Now /etc/init does a sync every five minutes, not to mention all the sync's I did before shutdown. Yet the disk was left in an inconsistent state. Why? -- Geoff Kuenning ...!ihnp4!trwrb!desint!geoff