Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 1996 11:16:14 -0400 (EDT)
From:      Peter Dufault <dufault@hda.com>
To:        hackers@freebsd.org
Subject:   POSIX O_SYNC versus our O_FSYNC
Message-ID:  <199604081516.LAA29919@hda.com>

next in thread | raw e-mail | index | archive | help
We're porting a commercial package that uses the POSIX O_SYNC flag
in open.  We don't have that - we have the undocumented O_FSYNC.

Can someone in the know comment on the O_?SYNC flags?

POSIX defines the flags O_DSYNC, O_RSYNC and O_SYNC:

O_DSYNC is data integrity, that is, a transfer is complete when the
data and anything you need to consider it finished is safely
transferred.  This excludes items like file access times but
includes items like file sizes.

O_RSYNC is read sync, and seems to only imply that you'll read
whatever another process last wrote (assuming they wrote it using either
O_DSYNC or O_SYNC).

O_SYNC is file system integrity, and is DSYNC plus file access
times etc.

Does our O_FSYNC correspond to either O_SYNC or O_DSYNC?  Is O_RSYNC
a NOP for UFS?

-- 
Temporarily via "hdalog@zipnet.net"...

Peter Dufault               Real-Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604081516.LAA29919>