diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-11-08 13:53:27 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-08 08:25:58 +0100 |
commit | b84cd05098275a7625223141d019f8af5a17323b (patch) | |
tree | 1cbc40e8dd5133b45b00f8514b0aa44359ad239d /tcp_vu.c | |
parent | 58fa5508bde073a39c93a8f1296e363f1786c84c (diff) | |
download | passt-b84cd05098275a7625223141d019f8af5a17323b.tar passt-b84cd05098275a7625223141d019f8af5a17323b.tar.gz passt-b84cd05098275a7625223141d019f8af5a17323b.tar.bz2 passt-b84cd05098275a7625223141d019f8af5a17323b.tar.lz passt-b84cd05098275a7625223141d019f8af5a17323b.tar.xz passt-b84cd05098275a7625223141d019f8af5a17323b.tar.zst passt-b84cd05098275a7625223141d019f8af5a17323b.zip |
log: Only check for FALLOC_FL_COLLAPSE_RANGE availability at runtime
log.c has several #ifdefs on FALLOC_FL_COLLAPSE_RANGE that won't attempt
to use it if not defined. But even if the value is defined at compile
time, it might not be available in the runtime kernel, so we need to check
for errors from a fallocate() call and fall back to other methods.
Simplify this to only need the runtime check by using linux_dep.h to define
FALLOC_FL_COLLAPSE_RANGE if it's not in the kernel headers.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_vu.c')
0 files changed, 0 insertions, 0 deletions