HomeFreeBSD

Support the fallocate() file operation.

Description

Support the fallocate() file operation.

Currently only the (FALLOC_FL_PUNCH_HOLE) flag combination is
supported, since it's the only one that matches the behavior of
zfs_space(). This makes it pretty much useless in its current
form, but it's a start.

To support other flag combinations we would need to modify
zfs_space() to make it more flexible, or emulate the desired
functionality in zpl_fallocate().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #334

Details

Provenance
Etienne Dechamps <etienne.dechamps@ovh.net>Authored on Sep 2 2011, 7:42 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 10 2012, 12:19 AM
Parents
rGaec69371a6a2: Check permissions in zfs_space().
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcb2d19010d8f: Support the fallocate() file operation. (authored by Etienne Dechamps <etienne.dechamps@ovh.net>).Feb 10 2012, 12:19 AM