public final class Fallocate
extends java.lang.Object
fallocate
and
posix_fallocate
functions.
https://stackoverflow.com/questions/18031841/pre-allocating-drive-space-for-file-storageModifier and Type | Method and Description |
---|---|
void |
execute() |
static Fallocate |
forChannel(java.nio.channels.FileChannel channel,
java.io.FileDescriptor fd,
long final_filesize) |
static Fallocate |
forChannel(java.nio.channels.FileChannel channel,
long final_filesize) |
Fallocate |
fromOffset(long offset) |
Fallocate |
keepSize() |
public static Fallocate forChannel(java.nio.channels.FileChannel channel, long final_filesize)
public static Fallocate forChannel(java.nio.channels.FileChannel channel, java.io.FileDescriptor fd, long final_filesize)
public Fallocate fromOffset(long offset)
public Fallocate keepSize()
public void execute() throws java.io.IOException
java.io.IOException