Add fallocate and use it instead of posix_fallocate if possible (#398)
authorLiu Bo <liub.liubo@gmail.com>
Thu, 18 Apr 2019 08:55:42 +0000 (01:55 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 18 Apr 2019 08:55:42 +0000 (09:55 +0100)
commit5fc562c90d7925963467babbb73ae5b4f9fd13f8
tree40520fcf13262c62937db332958997ed86edf550
parent9ec8e1c9406451262b6fd3c93787b2bb6d745ea5
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>
example/passthrough_ll.c
meson.build