> I have found that listing the directory after closing the file 
> seems to do the trick. It must purge the buffers to the disk.

I haven't looked at the DOSFS code yet, does it have a sync() or fsync() function?
If the file system keeps the allocation table cached in memory, you may need to flush the allocation table to the storage device, especially if you are shutting down power on the RTEMS system and moving the storage device to a different machine (or just re-booting into Windows, Linux, MacOS etc. on the same machine).

-- Chris Caudle


