On Jun 29, 2007, at 6:04 PM, Russell Coker wrote:
On Saturday 30 June 2007 02:04, Jeff Johnson <[EMAIL PROTECTED]> 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
______________________________________________________________________
RPM Package Manager http://rpm5.org
Developer Communication List rpm-devel@rpm5.org