aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libavl
diff options
context:
space:
mode:
authorEtienne Dechamps <[email protected]>2011-09-01 13:59:41 +0200
committerBrian Behlendorf <[email protected]>2012-02-09 15:20:32 -0800
commit5cb63a57f8d2d1a94e65b4710bfbb221b1a71700 (patch)
tree29217086ca4df5c495526cffa0b661563a5c1577 /lib/libavl
parent93648f314c258897a0fa72b0d0b164e1937a5b63 (diff)
Implement the truncate_range() inode operation.
This operation allows "hole punching" in ZFS files. On Solaris this is done via the vop_space() system call, which maps to the zfs_space() function. So we just need to write zpl_truncate_range() as a wrapper around zfs_space(). Note that this only works for regular files, not ZVOLs. This is currently an insecure implementation without permission checking, although this isn't that big of a deal since truncate_range() isn't even callable from userspace. Signed-off-by: Brian Behlendorf <[email protected]> Issue #334
Diffstat (limited to 'lib/libavl')
0 files changed, 0 insertions, 0 deletions