diff options
author | Jakob Haufe <sur5r@sur5r.net> | 2024-04-30 17:45:24 +0200 |
---|---|---|
committer | Jakob Haufe <sur5r@sur5r.net> | 2024-04-30 17:45:24 +0200 |
commit | 9ca1d4be2b587ce1d3e6c10dc2a98195b2ab3ba9 (patch) | |
tree | 19dcc1fb5e07fecead86653d38be1e9aea367e39 /src/client | |
parent | Merge pull request #57148 from zdover23/wip-doc-2024-04-30-cephadm-services-m... (diff) | |
download | ceph-9ca1d4be2b587ce1d3e6c10dc2a98195b2ab3ba9.tar.xz ceph-9ca1d4be2b587ce1d3e6c10dc2a98195b2ab3ba9.zip |
client: set LIBMOUNT_FORCE_MOUNT2=always
This is a workaround for libmount 2.38 or later on linux kernel 5.1 or
later.
libmount defaults to the new fsconfig interface which does not support
remounting the way the old mount(2) syscall did. Thus, dentry trimming
fails.
Fixes: https://tracker.ceph.com/issues/62664
Signed-off-by: Jakob Haufe <sur5r@sur5r.net>
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/fuse_ll.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 0e2e200644d..67f8d8ea768 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -1266,7 +1266,7 @@ static int remount_cb(void *handle) // trims all unused dentries in the file system char cmd[128+PATH_MAX]; CephFuse::Handle *cfuse = (CephFuse::Handle *)handle; - snprintf(cmd, sizeof(cmd), "LIBMOUNT_FSTAB=/dev/null mount -i -o remount %s", + snprintf(cmd, sizeof(cmd), "LIBMOUNT_FSTAB=/dev/null LIBMOUNT_FORCE_MOUNT2=always mount -i -o remount %s", #if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0) cfuse->opts.mountpoint); #else |