RPM Community Forums

Mailing List Message of <rpm-devel>

Re: fsync()

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 30 Jun 2007 - 04:02:28 CEST
Message-Id: <05FD3250-FCB1-45CD-B72E-BB5A0516EE9B@mac.com>

On Jun 29, 2007, at 6:04 PM, Russell Coker wrote:

> On Saturday 30 June 2007 02:04, Jeff Johnson <n3npq@mac.com> wrote:
>> Should I add O_SYNC when opening files on delayed write file systems?
>> Doable, but annoying mapping the path back to a file system type to
>> infer functionality.
>
> O_SYNC is not the correct solution.  XFS likes to delay block  
> allocation to
> get contiguous files.  O_SYNC on XFS would either result in re- 
> allocating
> file blocks (terrible for write performance) or discontigous  
> files.  Write
> performance will always be expected to be better from a fsync() before
> close() than from O_SYNC.
>

OK/ fsync before close, todo++. Thanks for the info, xfs is a mystery  
to me.

73 de Jeff
Received on Sat Jun 30 04:02:38 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.