… | |
… | |
221 | aio_statvfs $fh_or_path, $callback->($statvfs) |
221 | aio_statvfs $fh_or_path, $callback->($statvfs) |
222 | aio_utime $fh_or_path, $atime, $mtime, $callback->($status) |
222 | aio_utime $fh_or_path, $atime, $mtime, $callback->($status) |
223 | aio_chown $fh_or_path, $uid, $gid, $callback->($status) |
223 | aio_chown $fh_or_path, $uid, $gid, $callback->($status) |
224 | aio_chmod $fh_or_path, $mode, $callback->($status) |
224 | aio_chmod $fh_or_path, $mode, $callback->($status) |
225 | aio_truncate $fh_or_path, $offset, $callback->($status) |
225 | aio_truncate $fh_or_path, $offset, $callback->($status) |
|
|
226 | aio_allocate $fh, $mode, $offset, $len, $callback->($status) |
226 | aio_unlink $pathname, $callback->($status) |
227 | aio_unlink $pathname, $callback->($status) |
227 | aio_mknod $pathname, $mode, $dev, $callback->($status) |
228 | aio_mknod $pathname, $mode, $dev, $callback->($status) |
228 | aio_link $srcpath, $dstpath, $callback->($status) |
229 | aio_link $srcpath, $dstpath, $callback->($status) |
229 | aio_symlink $srcpath, $dstpath, $callback->($status) |
230 | aio_symlink $srcpath, $dstpath, $callback->($status) |
230 | aio_readlink $pathname, $callback->($link) |
231 | aio_readlink $pathname, $callback->($link) |
… | |
… | |
638 | =item aio_truncate $fh_or_path, $offset, $callback->($status) |
639 | =item aio_truncate $fh_or_path, $offset, $callback->($status) |
639 | |
640 | |
640 | Works like truncate(2) or ftruncate(2). |
641 | Works like truncate(2) or ftruncate(2). |
641 | |
642 | |
642 | |
643 | |
|
|
644 | =item aio_allocate $fh, $mode, $offset, $len, $callback->($status) |
|
|
645 | |
|
|
646 | Allocates or freed disk space according to the C<$mode> argument. See the |
|
|
647 | linux C<fallocate> docuemntation for details. |
|
|
648 | |
|
|
649 | C<$mode> can currently be C<0> or C<IO::AIO::FALLOC_FL_KEEP_SIZE> |
|
|
650 | to allocate space, or C<IO::AIO::FALLOC_FL_PUNCH_HOLE | |
|
|
651 | IO::AIO::FALLOC_FL_KEEP_SIZE>, to deallocate a file range. |
|
|
652 | |
|
|
653 | The file system block size used by C<fallocate> is presumably the |
|
|
654 | C<f_bsize> returned by C<statvfs>. |
|
|
655 | |
|
|
656 | If C<fallocate> isn't available or cannot be emulated (currently no |
|
|
657 | emulation will be attempted), passes C<-1> and sets C<$!> to C<ENOSYS>. |
|
|
658 | |
|
|
659 | |
643 | =item aio_chmod $fh_or_path, $mode, $callback->($status) |
660 | =item aio_chmod $fh_or_path, $mode, $callback->($status) |
644 | |
661 | |
645 | Works like perl's C<chmod> function. |
662 | Works like perl's C<chmod> function. |
646 | |
663 | |
647 | |
664 | |