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