fallocate

Pure-Ruby FFI bindings to posix_fallocate

Usage

require 'fallocate'

File.open 'some/file', 'w' do |f|
  f.allocate 0, 1024 * 1024 * 1024
end

Requirements

Right now, fallocate raises a FFI exception at loading time if posix_fallocate isn’t available in libc.

Contributing to fallocate

Copyright © 2012 Victor Costan. See LICENSE.txt for further details.