… | |
… | |
565 | |
565 | |
566 | Try to copy the I<file> (directories not supported as either source or |
566 | Try to copy the I<file> (directories not supported as either source or |
567 | destination) from C<$srcpath> to C<$dstpath> and call the callback with |
567 | destination) from C<$srcpath> to C<$dstpath> and call the callback with |
568 | the C<0> (error) or C<-1> ok. |
568 | the C<0> (error) or C<-1> ok. |
569 | |
569 | |
570 | This is a composite request that it creates the destination file with |
570 | This is a composite request that creates the destination file with |
571 | mode 0200 and copies the contents of the source file into it using |
571 | mode 0200 and copies the contents of the source file into it using |
572 | C<aio_sendfile>, followed by restoring atime, mtime, access mode and |
572 | C<aio_sendfile>, followed by restoring atime, mtime, access mode and |
573 | uid/gid, in that order. |
573 | uid/gid, in that order. |
574 | |
574 | |
575 | If an error occurs, the partial destination file will be unlinked, if |
575 | If an error occurs, the partial destination file will be unlinked, if |
… | |
… | |
858 | detected, it will be emulated by calling C<fsync> instead. |
858 | detected, it will be emulated by calling C<fsync> instead. |
859 | |
859 | |
860 | =item aio_pathsync $path, $callback->($status) |
860 | =item aio_pathsync $path, $callback->($status) |
861 | |
861 | |
862 | This request tries to open, fsync and close the given path. This is a |
862 | This request tries to open, fsync and close the given path. This is a |
863 | composite request intended tosync directories after directory operations |
863 | composite request intended to sync directories after directory operations |
864 | (E.g. rename). This might not work on all operating systems or have any |
864 | (E.g. rename). This might not work on all operating systems or have any |
865 | specific effect, but usually it makes sure that directory changes get |
865 | specific effect, but usually it makes sure that directory changes get |
866 | written to disc. It works for anything that can be opened for read-only, |
866 | written to disc. It works for anything that can be opened for read-only, |
867 | not just directories. |
867 | not just directories. |
868 | |
868 | |