zoukankan      html  css  js  c++  java
  • [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"

    亲测可用

  • 相关阅读:
    查前端资料的一些网站
    10.18号笔记
    10.17号笔记
    10.16号笔记
    10.13号笔记
    10.12号笔记
    10.11号笔记
    10.10号笔记
    10.9号笔记
    理想VS现实
  • 原文地址:https://www.cnblogs.com/hugetong/p/7729722.html
Copyright © 2011-2022 走看看