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.272 by root, Fri Jun 23 22:09:50 2017 UTC vs.
Revision 1.273 by root, Fri Jun 23 22:33:06 2017 UTC

740C<$mode> is usually C<0> or C<IO::AIO::FALLOC_FL_KEEP_SIZE> to allocate 740C<$mode> is usually C<0> or C<IO::AIO::FALLOC_FL_KEEP_SIZE> to allocate
741space, or C<IO::AIO::FALLOC_FL_PUNCH_HOLE | IO::AIO::FALLOC_FL_KEEP_SIZE>, 741space, or C<IO::AIO::FALLOC_FL_PUNCH_HOLE | IO::AIO::FALLOC_FL_KEEP_SIZE>,
742to deallocate a file range. 742to deallocate a file range.
743 743
744IO::AIO also supports C<FALLOC_FL_COLLAPSE_RANGE>, to remove a range 744IO::AIO also supports C<FALLOC_FL_COLLAPSE_RANGE>, to remove a range
745(without leaving a hole) and C<FALLOC_FL_ZERO_RANGE>, to zero a range (see 745(without leaving a hole), C<FALLOC_FL_ZERO_RANGE>, to zero a range,
746your L<fallocate(2)> manpage). 746C<FALLOC_FL_INSERT_RANGE> to insert a range and C<FALLOC_FL_UNSHARE_RANGE>
747to unshare shared blocks (see your L<fallocate(2)> manpage).
747 748
748The file system block size used by C<fallocate> is presumably the 749The file system block size used by C<fallocate> is presumably the
749C<f_bsize> returned by C<statvfs>. 750C<f_bsize> returned by C<statvfs>, but different filesystems and filetypes
751can dictate other limitations.
750 752
751If C<fallocate> isn't available or cannot be emulated (currently no 753If C<fallocate> isn't available or cannot be emulated (currently no
752emulation will be attempted), passes C<-1> and sets C<$!> to C<ENOSYS>. 754emulation will be attempted), passes C<-1> and sets C<$!> to C<ENOSYS>.
753 755
754 756

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines