[daily][btrfs][mlocate][updatedb] mlocate不认识btrfs里面的文件

这是mlocate的一个bug, 截至到目前还没有修复, 至少在redhat上没有修复.

https://bugzilla.redhat.com/show_bug.cgi?id=906591

解决方法是, 在 /etc/updatedb.conf 里添加添加一个参数

PRUNE_BIND_MOUNTS = no

这是因为mlocate目前分不清楚btrfs的mount节点和subvolumn.

同时参考 https://wiki.debian.org/Btrfs

也有相同的处理提示:

Write section on mlocate issues with btrfs (eg: allow bind mounts, mask off certain directories, etc.)
/home/tong/Src/copyleft/tartaglia/test [tong@T7] [16:44]
> head -n3 /etc/updatedb.conf
# by tony @ 2017-10-25 for buggy when scan btrfs.
# PRUNE_BIND_MOUNTS = "yes"
PRUNE_BIND_MOUNTS = "no"

亲测可用

原文地址:https://www.cnblogs.com/hugetong/p/7729722.html