&nbsp; &nbsp; I should have mentioned that I,ve only seen this on Microsoft Windows systems running filePro. &nbsp;Does that make any more sense to you? &nbsp;(Grin) &nbsp;<br><br>Sent from my HTC cell phone<br><br>----- Reply message -----<br>From: &quot;Fairlight&quot; &lt;fairlite@fairlite.com&gt;<br>To: &lt;filepro-list@lists.celestial.com&gt;<br>Subject: create()<br>Date: Fri, Aug 30, 2013 8:50 pm<br><br><br>On Thu, Aug 29, 2013 at 09:50:53AM -0500, Mike Schwartz thus spoke:<br>&gt; &nbsp; &nbsp; &nbsp;Dating back to the 1980&#39;s I&#39;ve had problems with hard drives and<br>&gt; &nbsp; &nbsp; &nbsp;hard drive controllers not completing file writes before I needed<br>&gt; &nbsp; &nbsp; &nbsp;to open a file. &nbsp;Most likely this is due to caching problems in the<br>&gt; &nbsp; &nbsp; &nbsp;drive and controller firmware. &nbsp;So, just closing the file doesn&#39;t<br>&gt; &nbsp; &nbsp; &nbsp;guarantee that it will be immediately ready to be opened.<br><br>That makes little sense as an explanation. &nbsp;Here&#39;s how it goes...<br><br>High-level 4GL Language: &nbsp;close()<br> &nbsp; &nbsp; generally translates to:<br>Low-level C: &nbsp;fflush(), followed by close()<br><br>Data -should- get flushed prior to close().<br><br>Once the data is flushed, the VFS layer has it, and hands it to the FS<br>driver. &nbsp;Even if there&#39;s caching, it -should- (in a sane system) be FIFO<br>caching; operations take place in the same order they&#39;re requested.<br><br>Ergo, close() followed immediately by open() should always result in the<br>file descriptor pointing to a file with the full contents from the time of<br>flush/close.<br><br>If you&#39;re going to put -anything- in there, it makes sense to put:<br><br>system &quot;sync&quot;<br><br>....instead of sleep(). &nbsp;At least it would flush the disk cache pending<br>write operations, rather than just guessing.<br><br>But it -shouldn&#39;t- be necessary, if things are written properly.<br><br>mark-&gt;<br>-- <br>Audio panton, cogito singularis.<br>_______________________________________________<br>Filepro-list mailing list<br>Filepro-list@lists.celestial.com<br>Subscribe/Unsubscribe/Subscription Changes<br>http://mailman.celestial.com/mailman/listinfo/filepro-list<br><br>