![]() |
Home |
|
Optimizing for Best Data SecurityRTFiles-32's default configuration ensures that all data associated with a file is flushed to disk at the latest when the file is closed. The use of RTFOpen flag RTF_LAZY_DATA does not compromise this behavior, but device flag RTF_DEVICE_LAZY_WRITE does. Device flag RTF_DEVICE_SINGLE_FAT may prevent a corrupted primary FAT to be restored. RTFOpen flag RTF_COMMITTED guarantees that a file is in a consistent state on disk after the successful completion of any RTFiles-32 API call, even when the file has not been closed. If files are written sector-aligned with large blocks, its performance penalty is acceptable. However, for write operations with small unaligned blocks, performance may suffer significantly.
|