]> git.proxmox.com Git - mirror_lxc.git/commit
add check for statvfs
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 1 Jul 2022 09:09:15 +0000 (11:09 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 1 Jul 2022 09:18:50 +0000 (11:18 +0200)
commit8ee615c27d4e646b13a767ffc59823262b38427d
tree85a46277d2a24ce1f0d3d733fd5f54472a5bf81b
parent85a273b596e3f6736538dec7221ed37e4aa9487b
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 <w.bumiller@proxmox.com>
meson.build