From owner-freebsd-questions Tue Jul 21 13:35:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05470 for freebsd-questions-outgoing; Tue, 21 Jul 1998 13:35:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.camalott.com (root@mail.camalott.com [208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05447 for ; Tue, 21 Jul 1998 13:35:51 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-76.camalott.com [208.229.74.76]) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id PAA09951; Tue, 21 Jul 1998 15:36:18 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.8) id PAA01671; Tue, 21 Jul 1998 15:35:22 -0500 (CDT) (envelope-from joelh) Date: Tue, 21 Jul 1998 15:35:22 -0500 (CDT) Message-Id: <199807212035.PAA01671@detlev.UUCP> To: joe@via.net CC: questions@FreeBSD.ORG In-reply-to: message from Joe McGuckin on Tue, 21 Jul 1998 00:56:18 -0700 Subject: Re: mount -o sync question From: Joel Ray Holveck Reply-to: joelh@gnu.org References: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The default mode of ufs filesystems is 'sync'? > Yet if I examine the state of the mounted filesystem using the mount > command, no indication is given of a filesystems (sync vs. async) state. > Yet if I deliberately set the mode to 'sync', mount will now indicate that > the filesystems are mounted synchronously. > www# mount > /dev/sd0a on / (local) > /dev/sd0s1f on /usr (local, synchronous) > /dev/sd0s1e on /var (local) > procfs on /proc (local) > /dev/sd1s1e on /home1 (local, synchronous) > Why is this? This would seem to indicate the 'sync' is not really > the default state of a filesystem (or at least that the sync 'bit' > in whatever data structure that represents a mount point isn't > normally set). Normally, FreeBSD writes file data to the disk asynchronously, but metadata (stuff like directory entries) synchronously. 'mount -o async' means to write everything async, and 'mount -o sync' means write everything sync. We really need to either update the man page to show this or write an FAQ entry. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message