> - write 1 byte of data at this place

Shouldn't it be sufficient to seek to the desired size (as offset), then
do a write with length zero there? (Writing with length zero extends or
truncates the file to the current seek offset.)

> - close the file
> - open file for writing (no truncate)

I would suggest not to close and re-open the file. If it does improve the
operation's performance, then just committing the file should improve it
in the same way. If performance isn't improved by it, the close and
re-open sequence can be removed without replacement.


All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
Freedos-kernel mailing list

Reply via email to