Commit a file to disk, and optionally truncate off extra pre-allocated bytes if final.
true on success, false on failure.
| Name | Description |
|---|---|
| pos [in] | The first unwritten position in the file to be flushed. |
| finalize [in] | True if no more data will be written to this file. |