From 8ee615c27d4e646b13a767ffc59823262b38427d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 1 Jul 2022 11:09:15 +0200 Subject: [PATCH] add check for statvfs we use HAVE_STATVFS in the code but with meson the check got lost causing mount_entry to fail to remount some things such as a bind mount of /dev/fuse via lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0 which would cause the following log messages: DEBUG conf - ../src/lxc/conf.c:mount_entry:2416 - Remounting "/dev/fuse" on "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/fuse" to respect bind or remount options ERROR conf - ../src/lxc/conf.c:mount_entry:2459 - Operation not permitted - Failed to mount "/dev/fuse" on "/usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/fuse" note that the `Flags for ... were ...` line is not showing up there, which depends on HAVE_STATVFS Signed-off-by: Wolfgang Bumiller --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 21eba6d1e..6a056fa70 100644 --- a/meson.build +++ b/meson.build @@ -538,6 +538,7 @@ foreach tuple: [ ['sigdescr_np'], ['signalfd'], ['statx'], + ['statvfs'], ['strlcat'], ['strlcpy'], ['unshare'], @@ -667,6 +668,7 @@ foreach ident: [ ['setns', '''#include '''], ['sigdescr_np', '''#include '''], ['signalfd', '''#include '''], + ['statvfs', '''#include '''], ['statx', '''#include #include #include '''],