Date: Mon, 21 Sep 1998 08:25:16 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, tlambert@primenet.com Cc: freebsd-current@FreeBSD.ORG, mal@algonet.se Subject: Re: pthreads and sync writes Message-ID: <199809202225.IAA14238@godzilla.zeta.org.au>
next 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; Oops. So it's no illusion that fsync() is faster. O_FSYNC prevents clustering. Bruce 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?199809202225.IAA14238>