… | |
… | |
202 | |
202 | |
203 | =head1 FUNCTIONS |
203 | =head1 FUNCTIONS |
204 | |
204 | |
205 | =head2 QUICK OVERVIEW |
205 | =head2 QUICK OVERVIEW |
206 | |
206 | |
207 | This section simply lists the prototypes of the most important functions |
207 | This section simply lists the prototypes most of the functions for |
208 | for quick reference. See the following sections for function-by-function |
208 | quick reference. See the following sections for function-by-function |
209 | documentation. |
209 | documentation. |
210 | |
210 | |
211 | aio_wd $pathname, $callback->($wd) |
211 | aio_wd $pathname, $callback->($wd) |
212 | aio_open $pathname, $flags, $mode, $callback->($fh) |
212 | aio_open $pathname, $flags, $mode, $callback->($fh) |
213 | aio_close $fh, $callback->($status) |
213 | aio_close $fh, $callback->($status) |
… | |
… | |
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_allocate $fh, $mode, $offset, $len, $callback->($status) |
|
|
227 | aio_fiemap $fh, $start, $length, $flags, $count, $cb->(\@extents) |
227 | aio_unlink $pathname, $callback->($status) |
228 | aio_unlink $pathname, $callback->($status) |
228 | aio_mknod $pathname, $mode, $dev, $callback->($status) |
229 | aio_mknod $pathname, $mode, $dev, $callback->($status) |
229 | aio_link $srcpath, $dstpath, $callback->($status) |
230 | aio_link $srcpath, $dstpath, $callback->($status) |
230 | aio_symlink $srcpath, $dstpath, $callback->($status) |
231 | aio_symlink $srcpath, $dstpath, $callback->($status) |
231 | aio_readlink $pathname, $callback->($link) |
232 | aio_readlink $pathname, $callback->($link) |
… | |
… | |
1278 | |
1279 | |
1279 | =item aio_fiemap $fh, $start, $length, $flags, $count, $cb->(\@extents) |
1280 | =item aio_fiemap $fh, $start, $length, $flags, $count, $cb->(\@extents) |
1280 | |
1281 | |
1281 | Queries the extents of the given file (by calling the Linux FIEMAP ioctl, |
1282 | Queries the extents of the given file (by calling the Linux FIEMAP ioctl, |
1282 | see L<http://cvs.schmorp.de/IO-AIO/doc/fiemap.txt> for details). If the |
1283 | see L<http://cvs.schmorp.de/IO-AIO/doc/fiemap.txt> for details). If the |
1283 | C<ioctl> is not available on your OS, then this rquiest will fail with |
1284 | C<ioctl> is not available on your OS, then this request will fail with |
1284 | C<ENOSYS>. |
1285 | C<ENOSYS>. |
1285 | |
1286 | |
1286 | C<$start> is the starting offset to query extents for, C<$length> is the |
1287 | C<$start> is the starting offset to query extents for, C<$length> is the |
1287 | size of the range to query - if it is C<undef>, then the whole file will |
1288 | size of the range to query - if it is C<undef>, then the whole file will |
1288 | be queried. |
1289 | be queried. |