eio_fallocate
(PECL eio >= 0.0.1dev)
Allows the caller to directly manipulate the allocated disk space for a file
Description
eio_fallocate() allows the caller to directly manipulate the allocated disk space for the file specified by fd file descriptor for the byte range starting at offset and continuing for length bytes.
EIO_O_CREAT should be logically OR'd with EIO_O_WRONLY, or EIO_O_RDWR
Parameters
fdStream, Socket resource, or numeric file descriptor, e.g. returned by
eio_open().modeCurrently only one flag is supported for mode:
EIO_FALLOC_FL_KEEP_SIZE(the same as POSIX constantFALLOC_FL_KEEP_SIZE).offsetSpecifies start of the byte range.
lengthSpecifies length of the byte range.
priValues
callbackProto
dataArbitrary variable passed to
callback.
Return Values
eio_fallocate() returns request resource on success,Falseforfailure.