<br><br><div class="gmail_quote">On Wed, Apr 21, 2010 at 9:25 PM, Chris Fowler <span dir="ltr">&lt;<a href="mailto:cfowler@outpostsentinel.com">cfowler@outpostsentinel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, 2010-04-21 at 21:11 -0400, Doug McNash wrote:<br>
&gt; Yep, but Chris says he did an lseek to write over the file again which<br>
&gt; is probably fast enough to only write over the buffer, not the disk.<br>
<br>
</div>I neglected to say that in the for loop I did a fsync(2).  That is<br>
supposed to flush the buffers to disk.  Does it really though?<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>I thought fsync would write to the disk which puts it in cache (if used). sync was the command to force the disks to write the cache to the platter. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br>Actively in pursuit of Life, Liberty and Happiness         <br><br>