------- Comment #13 from jvdelisle at gcc dot gnu dot org 2006-03-09 14:56 ------- If you are doing sequential writes, the write truncates the file. So if you write out 8 bytes where there were 4 before, it just overwrites and extends the file length if necessary. All data after the last write goes away. This is normal behavior.
If it is DIRECT I/O you are doing, this is a different story and record sizes are fixed length. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26509