RPM Community Forums

Mailing List Message of <rpm-devel>

Re: fsync()

From: Andy Green <andy@warmcat.com>
Date: Sat 30 Jun 2007 - 15:09:29 CEST
Message-ID: <46865609.1050804@warmcat.com>
Andy Green wrote:

>> sync() is not the way to get some files committed to disk.
> 
> Sure it is.  A sync() at the end is aimed at closing the window between

One more point on fsync() vs sync()... sync() will mop up whatever the
%pre/%post scripts have been up to, eg, ldconfig or whatever and commit
it.  fsync() just on archive unpacked files will miss that.

-Andy
Received on Sat Jun 30 15:09:36 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.