summaryrefslogtreecommitdiff
path: root/eio.pod
diff options
context:
space:
mode:
authorroot <root>2011-07-07 22:36:18 +0000
committerroot <root>2011-07-07 22:36:18 +0000
commitd94cbd62828958bc2eff4815b2dcf0d4a52e19b4 (patch)
treec389a6950c3c41123e7b6e4265a5ee80c322d999 /eio.pod
parentfdbeee91855102a6de640976ccd55198f2fd5a89 (diff)
fallocate
Diffstat (limited to 'eio.pod')
-rw-r--r--eio.pod9
1 files changed, 9 insertions, 0 deletions
diff --git a/eio.pod b/eio.pod
index fd5676e..b8152c2 100644
--- a/eio.pod
+++ b/eio.pod
@@ -595,6 +595,15 @@ as calling C<fdatasync>.
Flags can be any combination of C<EIO_SYNC_FILE_RANGE_WAIT_BEFORE>,
C<EIO_SYNC_FILE_RANGE_WRITE> and C<EIO_SYNC_FILE_RANGE_WAIT_AFTER>.
+=item eio_fallocate (int fd, int mode, off_t offset, off_t len, int pri, eio_cb cb, void *data)
+
+Calls C<fallocate> (note: I<NOT> C<posix_fallocate>!). If the syscall is
+missing, then it returns failure and sets C<errno> to C<ENOSYS>.
+
+The C<mode> argument can be C<0> (for behaviour similar to
+C<posix_fallocate>), or C<EIO_FALLOC_FL_KEEP_SIZE>, which keeps the size
+of the file unchanged (but still preallocates space beyond end of file).
+
=back
=head3 LIBEIO-SPECIFIC REQUESTS