diff options
author | Liu Bo <liub.liubo@gmail.com> | 2019-04-18 01:55:42 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-18 09:55:42 +0100 |
commit | 5fc562c90d7925963467babbb73ae5b4f9fd13f8 (patch) | |
tree | 40520fcf13262c62937db332958997ed86edf550 /lib/helper.c | |
parent | 9ec8e1c9406451262b6fd3c93787b2bb6d745ea5 (diff) | |
download | libfuse-5fc562c90d7925963467babbb73ae5b4f9fd13f8.tar.gz |
Add fallocate and use it instead of posix_fallocate if possible (#398)
fuse.ko has supported FALLOC_FL_KEEP_SIZE and FALLOC_FL_PUNCH_HOLE at this
moment and more modes may be supported in the future.
fallocate(2) supports modes while posix_fallocate(2) does not, so this
makes lo_fallocate use fallocate(2) instead.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Diffstat (limited to 'lib/helper.c')
0 files changed, 0 insertions, 0 deletions