QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
DOS file system's FAT information |
Ref. No. |
QNX.000009717 |
Category(ies) |
Filesystem |
Issue |
If a power supply goes down when writting DOS file system's FAT information, is there a possibility that all DOS file system could be destroyed?
|
Solution |
Dosfsys is just a client of Fsys. It is accessing a raw partition and it should not be confused with the operation of Fsys itself. Regarding to how the released Dosfsys accesses and caches FAT information, it is not making any attempt to be overly robust.
This also goes for Fatfsys, with the exception that you can use the "-m sync" option to specify that the underlying partition be opened up via Fsys with O_SYNC, which will give more robust writes with a performance penalty. The default case will perform all writes immediately but leave it to Fsys strategy to initiate physical IO |
|