From owner-freebsd-current Sun Sep 20 14:57:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA15945 for freebsd-current-outgoing; Sun, 20 Sep 1998 14:57:40 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA15939 for ; Sun, 20 Sep 1998 14:57:37 -0700 (PDT) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id OAA01207; Sun, 20 Sep 1998 14:57:04 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp04.primenet.com, id smtpd001192; Sun Sep 20 14:57:03 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id OAA02854; Sun, 20 Sep 1998 14:57:00 -0700 (MST) From: Terry Lambert Message-Id: <199809202157.OAA02854@usr04.primenet.com> Subject: Re: pthreads and sync writes To: bde@zeta.org.au (Bruce Evans) Date: Sun, 20 Sep 1998 21:57:00 +0000 (GMT) Cc: freebsd-current@FreeBSD.ORG, mal@algonet.se In-Reply-To: <199809201934.FAA00868@godzilla.zeta.org.au> from "Bruce Evans" at Sep 21, 98 05:34:46 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >Btw, O_FSYNC isn't documented in open.2. Fsync()ing also seems to > >be sligtly faster, is this an illusion or is there a difference > >in the semantics? > > O_FSYNC is a no-op in FreeBSD. It probably shouldn't be defined. ??? /sys/kern/vfs_vnops.c:vn_write(): if ((fp->f_flag & O_FSYNC) || (vp->v_mount && (vp->v_mount->mnt_flag & MNT_SYNCHRONOUS))) ioflag |= IO_SYNC; See also: /sys/ufs/ufs/ufs_readwrite.c and B_SYNC. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message