joel.sherrill at OARcorp.com
Tue Jun 3 13:39:07 UTC 2003
Angelo Fraietta wrote:
> This has occurred again. It appears that the fsync is not actually
> working correctly. It looks like I will have to modify my code so I do
> not reboot at the end - or at least wait a while
I wondered on your original post if the fsync() is forcing things to be
scheduled to disk but there is no mechanism to wait until they are
all actually there.
How can we know that all the disk blocks have been written?
> Angelo Fraietta wrote:
> > I found a free chkdsk program on the free dos site
> > http://www.freedos.org/freedos/software/lsm2html.cgi?file=base/chkdsk.lsm
> > I had a free cluister in the file. This found and fixed it (or at
> > least let me oiverwrite it)
> > Angelo Fraietta wrote:
> >> I am having trouble sometimes if I get a corrupted file on a dos fs
> >> -- I suspect lost chains or the likes. The files says it opens fine,
> >> however, it does not get written. I suspect that the file has become
> >> corrupt because if I go to a dos prompt and physically delete the
> >> file, it works.
> >> This is a rare occurrence, however, I have had it three times today.
> >> Does anyone know of a diagnostic that will run through the filesystem
> >> and fix these types of error. I just need to be able to overwrite the
> >> corrupt file.
> >> Any suggestions?
> 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)
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users