*BSD News Article 91973


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!news.maxwell.syr.edu!EU.net!main.Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.misc,comp.os.linux.misc
Subject: Re: Linux vs BSD
Date: 26 Mar 1997 17:24:15 GMT
Organization: interface business GmbH, Dresden
Lines: 19
Message-ID: <5hbm3v$mjb@innocence.interface-business.de>
References: <32DFFEAB.7704@usa.net> <5dadfr$cnu@web.nmti.com>
  <n4stf5.tq2.ln@zen> <E6sIEF.1qE@truffula.sj.ca.us> <prlfg5.bs.ln@zen>
  <Pine.NEB.3.95.970316102739.709D-100000@sphynx.fdn.fr>
  <5gjsc9$2cm@innocence.interface-business.de>
  <5gmk83$c9j@rzstud2.rz.uni-karlsruhe.de>
  <5h5og3$6qn@innocence.interface-business.de>
  <5h79u0$meg@rzstud2.rz.uni-karlsruhe.de>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:2884 comp.os.linux.misc:166455

uk1o@rzstud2.rz.uni-karlsruhe.de (Felix Schroeter) wrote:

> If I remember correctly (but I may be wrong too), POSIX.1 requires
> fsync() to actually write all data and metadata to permanent storage
> before returning.

I don't have Posix.1 handy, alas.  The BSD implementation actually
waits for completion unless the filesystem has been mounted `async'
(which is the equivalent to the Linux ext2fs default behaviour, but is
not the default on BSD).

But that's an implementation detail.  If Posix.1 required fsync() to
only return after the data have been written, BSD fsync(2) is not
Posix-compliant if the filesystem has been mounted async.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j