Date: Sun, 20 Sep 1998 21:57:00 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: bde@zeta.org.au (Bruce Evans) Cc: freebsd-current@FreeBSD.ORG, mal@algonet.se Subject: Re: pthreads and sync writes Message-ID: <199809202157.OAA02854@usr04.primenet.com> In-Reply-To: <199809201934.FAA00868@godzilla.zeta.org.au> from "Bruce Evans" at Sep 21, 98 05:34:46 am
next in thread | previous in thread | raw e-mail | index | archive | help
> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809202157.OAA02854>
