Forced buffered data APIs

Forced buffered data APIs synchronously force file and directory information. When you use the Force Buffered Data (QHFFRCSF) or fsync() API, you can write optical file data to nonvolatile media while you are writing optical file data to optical media.

When creating or updating optical files, the data is not guaranteed to exist on optical disk until the file is successfully closed. Optical file data can, however, be synchronously written to nonvolatile storage using either the QHFFRCSF or fsync() API. The type of nonvolatile storage is different depending on the optical media format.

For the high performance optical file system (HPOFS), all file data will be written to the internal disk storage. The data can then be recovered through a held optical file if a power loss or other unexpected error occurred which prevented the file from being closed.

For Universal Disk Format (UDF), all file data is written to the optical disk when a force operation is issued. No recovery is required if a power loss or other unexpected error occurs that prevents the file from being closed. However, if write operations are issued after the data is forced and the close operation is not successful, the file data is unpredictable. Because the write operations that follow the force operation are asynchronous, the data might not be written to the optical disc.