This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Thomas, I should have pointed out that for a quick test you don't really need to download and build a snapshot distribution, you could just insert the fsync() call in nc.c according to this context diff patch: $ cvs diff -c -r2.152 libsrc/nc.c Index: libsrc/nc.c =================================================================== RCS file: /upc/share/CVS/netcdf-3/libsrc/nc.c,v retrieving revision 2.152 retrieving revision 2.154 diff -c -r2.152 -r2.154 *** libsrc/nc.c 17 May 2009 21:18:29 -0000 2.152 --- libsrc/nc.c 2 Nov 2009 14:51:46 -0000 2.154 *************** *** 1462,1468 **** if(status != NC_NOERR) return status; ! return ncp->nciop->sync(ncp->nciop); } --- 1462,1477 ---- if(status != NC_NOERR) return status; ! status = ncp->nciop->sync(ncp->nciop); ! if(status != NC_NOERR) ! return status; ! ! #ifdef USE_FSYNC ! /* experimental, to see if it improves NFS concurrent access */ ! status = fsync(ncp->nciop->fd); ! #endif /* USE_FSYN */ ! ! return status; } --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: NVI-857322 Department: Support netCDF Priority: Normal Status: Closed