fs.fdatasync(fd, callback)
fd
<integer>callback
<Function>err
<Error>
将与文件关联的所有当前排队的 I/O 操作强制为操作系统的同步 I/O 完成状态。
有关详细信息,请参阅 POSIX fdatasync(2)
文档。
除了可能的异常之外,没有为完成回调提供任何参数。
fd
<integer>callback
<Function>err
<Error>
Forces all currently queued I/O operations associated with the file to the
operating system's synchronized I/O completion state. Refer to the POSIX
fdatasync(2)
documentation for details. No arguments other than a possible
exception are given to the completion callback.