G
Guest
Our setup:
We run HORM with a two volume compact flash. Drive C: is read-only, Drive
D: is writeable. Drive D: is locked/unmounted prior to hibernation and then
unlocked immediately after hibernation.
Our problem:
We create/edit files on Drive D:. We always fflush() or fclose() the files
immediately after writing/changing any data in them, since we allow our
operators to power down any time they want and don't want to lose any data.
Our hope was that the files that we created/edited would alway be saved.
However, often aften a reboot, they disappear. I think it is because the
driver for the compact flash determines when to flush the file buffers,
independent of my fflush/fclose. I have found that if after every write I do
a FlushFileBuffers() everything seems to work. This seems to require quite a
bit of overhead, especially if I do a lot of writing. Is there a simpler
way, or am I missing something?
We run HORM with a two volume compact flash. Drive C: is read-only, Drive
D: is writeable. Drive D: is locked/unmounted prior to hibernation and then
unlocked immediately after hibernation.
Our problem:
We create/edit files on Drive D:. We always fflush() or fclose() the files
immediately after writing/changing any data in them, since we allow our
operators to power down any time they want and don't want to lose any data.
Our hope was that the files that we created/edited would alway be saved.
However, often aften a reboot, they disappear. I think it is because the
driver for the compact flash determines when to flush the file buffers,
independent of my fflush/fclose. I have found that if after every write I do
a FlushFileBuffers() everything seems to work. This seems to require quite a
bit of overhead, especially if I do a lot of writing. Is there a simpler
way, or am I missing something?