… | |
… | |
542 | callback with the fdatasync result code. |
542 | callback with the fdatasync result code. |
543 | |
543 | |
544 | If this call isn't available because your OS lacks it or it couldn't |
544 | If this call isn't available because your OS lacks it or it couldn't |
545 | be detected, it will be emulated by calling "fsync" instead. |
545 | be detected, it will be emulated by calling "fsync" instead. |
546 | |
546 | |
|
|
547 | aio_sync_file_range $fh, $offset, $nbytes, $flags, $callback->($status) |
|
|
548 | Sync the data portion of the file specified by $offset and $length |
|
|
549 | to disk (but NOT the metadata), by calling the Linux-specific |
|
|
550 | sync_file_range call. If sync_file_range is not available or it |
|
|
551 | returns ENOSYS, then fdatasync or fsync is being substituted. |
|
|
552 | |
|
|
553 | $flags can be a combination of |
|
|
554 | "IO::AIO::SYNC_FILE_RANGE_WAIT_BEFORE", |
|
|
555 | "IO::AIO::SYNC_FILE_RANGE_WRITE" and |
|
|
556 | "IO::AIO::SYNC_FILE_RANGE_WAIT_AFTER": refer to the sync_file_range |
|
|
557 | manpage for details. |
|
|
558 | |
547 | aio_pathsync $path, $callback->($status) |
559 | aio_pathsync $path, $callback->($status) |
548 | This request tries to open, fsync and close the given path. This is |
560 | This request tries to open, fsync and close the given path. This is |
549 | a composite request intended to sync directories after directory |
561 | a composite request intended to sync directories after directory |
550 | operations (E.g. rename). This might not work on all operating |
562 | operations (E.g. rename). This might not work on all operating |
551 | systems or have any specific effect, but usually it makes sure that |
563 | systems or have any specific effect, but usually it makes sure that |