ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.133 by root, Sat Sep 6 07:14:52 2008 UTC vs.
Revision 1.135 by root, Tue Sep 30 03:50:59 2008 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines