Angelo Fraietta angelo_f at
Tue Jun 3 22:12:03 UTC 2003

Victor V. Vengerov wrote:

> Angelo,
> Not sure this is your case but...
> Have in mind that if you open file and then delete it, directory entry
> deleted immediately, but file itself (cluster chain on the disk) will
> be deleted only when all tasks close this file. If the system shutdown
> keeping the files opened, lost chains may occurs.
I was not actually deleting it -- I was trying to overwrite it.
The file was written, however, because I rebooted immediately after performing fsync and then fclose, I got an empty cluster.  This in turn prevented me from writing to file again even after rebooting. I wait 1 second now before rebooting now and this seems to be OK now. I would say this is because fsync is done before fclose. It would be nice to be able to force a complete sync of the drive, knowing it was done instead of just waiting 1 second. Maybe later 1 second will not be enough?

Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)

More information about the users mailing list