Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: [netcdfgroup] Wondering about when NetCDF data hits the disk...

Am Wed, 28 Oct 2009 16:49:54 +0100
schrieb Thomas Orgis <Thomas.Orgis@xxxxxx>:

> Main point of this discussion is the nc_fsync(), or any better named
> function, to time actual data write action, and I would be happy if
> it could make its way into a future NetCDF release.

After reflecting with Rob, I think an extra flag to nc_open to modify the 
nc_sync() behaviour to include fsync() would be better than introducing another 
function for this. I am not totally sure now if nc_sync() should call fsync() 
only when it actually had dirty data to write or always... Not sure how it is 
organized inside NetCDF code (if nc_sync() is used a lot internally, for 
example)... we need to make sure that any write since the last fsync() triggers 
a call to fsync() on the next call to nc_sync().


Alrighty then,

Thomas.

-- 
Dipl. Phys. Thomas Orgis
Atmospheric Modelling
Alfred-Wegener-Institute for Polar and Marine Research


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690