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

Comparing IO-AIO/README (file contents):
Revision 1.38 by root, Sat Jun 27 03:19:27 2009 UTC vs.
Revision 1.40 by root, Thu Nov 12 00:01:52 2009 UTC

512 into memory. Status is the same as with aio_read. 512 into memory. Status is the same as with aio_read.
513 513
514 aio_copy $srcpath, $dstpath, $callback->($status) 514 aio_copy $srcpath, $dstpath, $callback->($status)
515 Try to copy the *file* (directories not supported as either source 515 Try to copy the *file* (directories not supported as either source
516 or destination) from $srcpath to $dstpath and call the callback with 516 or destination) from $srcpath to $dstpath and call the callback with
517 the 0 (error) or -1 ok. 517 a status of 0 (ok) or -1 (error, see $!).
518 518
519 This is a composite request that creates the destination file with 519 This is a composite request that creates the destination file with
520 mode 0200 and copies the contents of the source file into it using 520 mode 0200 and copies the contents of the source file into it using
521 "aio_sendfile", followed by restoring atime, mtime, access mode and 521 "aio_sendfile", followed by restoring atime, mtime, access mode and
522 uid/gid, in that order. 522 uid/gid, in that order.
526 uid/gid, where errors are being ignored. 526 uid/gid, where errors are being ignored.
527 527
528 aio_move $srcpath, $dstpath, $callback->($status) 528 aio_move $srcpath, $dstpath, $callback->($status)
529 Try to move the *file* (directories not supported as either source 529 Try to move the *file* (directories not supported as either source
530 or destination) from $srcpath to $dstpath and call the callback with 530 or destination) from $srcpath to $dstpath and call the callback with
531 the 0 (error) or -1 ok. 531 a status of 0 (ok) or -1 (error, see $!).
532 532
533 This is a composite request that tries to rename(2) the file first; 533 This is a composite request that tries to rename(2) the file first;
534 if rename fails with "EXDEV", it copies the file with "aio_copy" 534 if rename fails with "EXDEV", it copies the file with "aio_copy"
535 and, if that is successful, unlinks the $srcpath. 535 and, if that is successful, unlinks the $srcpath.
536 536
631 operations (E.g. rename). This might not work on all operating 631 operations (E.g. rename). This might not work on all operating
632 systems or have any specific effect, but usually it makes sure that 632 systems or have any specific effect, but usually it makes sure that
633 directory changes get written to disc. It works for anything that 633 directory changes get written to disc. It works for anything that
634 can be opened for read-only, not just directories. 634 can be opened for read-only, not just directories.
635 635
636 Future versions of this function might fall back to other methods
637 when "fsync" on the directory fails (such as calling "sync").
638
636 Passes 0 when everything went ok, and -1 on error. 639 Passes 0 when everything went ok, and -1 on error.
637 640
638 aio_group $callback->(...) 641 aio_group $callback->(...)
639 This is a very special aio request: Instead of doing something, it 642 This is a very special aio request: Instead of doing something, it
640 is a container for other aio requests, which is useful if you want 643 is a container for other aio requests, which is useful if you want

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines