Re: Steinar H. Gunderson
>   sudo updatedb --debug-pruning

$ sudo updatedb --debug-pruning
conf_block:
prune_bind_mounts\000
1\000
\000
prunefs\000
AFS\000
AUTOFS\000
BINFMT_MISC\000
CEPH\000
CGROUP\000
CGROUP2\000
CIFS\000
CODA\000
CONFIGFS\000
CURLFTPFS\000
DEBUGFS\000
DEVFS\000
DEVPTS\000
DEVTMPFS\000
ECRYPTFS\000
FTPFS\000
FUSE.CEPH\000
FUSE.GLUSTERFS\000
FUSE.GVFSD-FUSE\000
FUSE.MFS\000
FUSE.ROZOFS\000
FUSE.SSHFS\000
FUSECTL\000
FUSESMB\000
HUGETLBFS\000
ISO9660\000
LUSTRE\000
LUSTRE_LITE\000
MFS\000
MQUEUE\000
NCPFS\000
NFS\000
NFS4\000
OCFS\000
OCFS2\000
PROC\000
PSTORE\000
RPC_PIPEFS\000
SECURITYFS\000
SHFS\000
SMBFS\000
SYSFS\000
TMPFS\000
TRACEFS\000
UDEV\000
UDF\000
USBFS\000
\000
prunenames\000
\000
prunepaths\000
/media\000
/srv/src/chroot\000
/tmp\000
/var/lib/ceph\000
/var/lib/os-prober\000
/var/spool\000
\000

-----------------------
Rebuilding bind_mount_paths:
 `/sys' (21 on 26) is `/' of `sysfs' (0:19), type `sysfs'
 `/proc' (22 on 26) is `/' of `proc' (0:20), type `proc'
 `/dev' (23 on 26) is `/' of `udev' (0:5), type `devtmpfs'
 `/dev/pts' (24 on 23) is `/' of `devpts' (0:21), type `devpts'
 `/run' (25 on 26) is `/' of `tmpfs' (0:22), type `tmpfs'
 `/' (26 on 1) is `/' of `/dev/mapper/Debian-root' (254:4), type `ext4'
 `/sys/kernel/security' (27 on 21) is `/' of `securityfs' (0:6), type 
`securityfs'
 `/dev/shm' (28 on 23) is `/' of `tmpfs' (0:23), type `tmpfs'
 `/run/lock' (29 on 25) is `/' of `tmpfs' (0:24), type `tmpfs'
 `/sys/fs/cgroup' (30 on 21) is `/' of `cgroup2' (0:25), type `cgroup2'
 `/sys/fs/pstore' (31 on 21) is `/' of `pstore' (0:26), type `pstore'
 `/sys/fs/bpf' (32 on 21) is `/' of `bpf' (0:27), type `bpf'
 `/proc/sys/fs/binfmt_misc' (33 on 22) is `/' of `systemd-1' (0:28), type 
`autofs'
 `/dev/hugepages' (34 on 23) is `/' of `hugetlbfs' (0:29), type `hugetlbfs'
 `/dev/mqueue' (35 on 23) is `/' of `mqueue' (0:18), type `mqueue'
 `/sys/kernel/debug' (36 on 21) is `/' of `debugfs' (0:7), type `debugfs'
 `/sys/kernel/tracing' (37 on 21) is `/' of `tracefs' (0:12), type `tracefs'
 `/sys/kernel/config' (38 on 21) is `/' of `configfs' (0:30), type `configfs'
 `/sys/fs/fuse/connections' (39 on 21) is `/' of `fusectl' (0:31), type 
`fusectl'
 `/run/credentials/systemd-sysusers.service' (61 on 25) is `/' of `ramfs' 
(0:32), type `ramfs'
 `/boot' (85 on 26) is `/' of `/dev/sda1' (8:1), type `ext4'
 `/home' (90 on 26) is `/' of `/dev/mapper/Debian-home' (254:3), type `ext4'
 `/srv' (93 on 26) is `/' of `/dev/mapper/plain-srv' (254:0), type `ext4'
 `/proc/sys/fs/binfmt_misc' (123 on 33) is `/' of `binfmt_misc' (0:36), type 
`binfmt_misc'
 `/run/netns' (671 on 25) is `/netns' of `tmpfs' (0:22), type `tmpfs'
 `/run/netns/newpid1' (692 on 671) is `net:[4026532552]' of `nsfs' (0:4), type 
`nsfs'
 `/run/netns/newpid1' (693 on 25) is `net:[4026532552]' of `nsfs' (0:4), type 
`nsfs'
 `/run/user/2062' (734 on 25) is `/' of `tmpfs' (0:45), type `tmpfs'
 `/run/user/2062/doc' (757 on 734) is `/' of `portal' (0:46), type `fuse.portal'
Matching bind_mount_paths:
 => adding `/run/netns/newpid1' (duplicate of mount point `/run/netns/newpid1')
 => adding `/run/netns' (root `/netns' is a child of `/', mounted on `/run')
...done
Checking whether filesystem `/boot' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
 `/proc', type `proc'
 => type matches, dir `/proc'
 `/dev', type `devtmpfs'
 => type matches, dir `/dev'
 `/dev/pts', type `devpts'
 => type matches, dir `/dev/pts'
 `/run', type `tmpfs'
 => type matches, dir `/run'
 `/', type `ext4'
 `/sys/kernel/security', type `securityfs'
 => type matches, dir `/sys/kernel/security'
 `/dev/shm', type `tmpfs'
 => type matches, dir `/dev/shm'
 `/run/lock', type `tmpfs'
 => type matches, dir `/run/lock'
 `/sys/fs/cgroup', type `cgroup2'
 => type matches, dir `/sys/fs/cgroup'
 `/sys/fs/pstore', type `pstore'
 => type matches, dir `/sys/fs/pstore'
 `/sys/fs/bpf', type `bpf'
 `/proc/sys/fs/binfmt_misc', type `autofs'
 => type matches, dir `/proc/sys/fs/binfmt_misc'
 `/dev/hugepages', type `hugetlbfs'
 => type matches, dir `/dev/hugepages'
 `/dev/mqueue', type `mqueue'
 => type matches, dir `/dev/mqueue'
 `/sys/kernel/debug', type `debugfs'
 => type matches, dir `/sys/kernel/debug'
 `/sys/kernel/tracing', type `tracefs'
 => type matches, dir `/sys/kernel/tracing'
 `/sys/kernel/config', type `configfs'
 => type matches, dir `/sys/kernel/config'
 `/sys/fs/fuse/connections', type `fusectl'
 => type matches, dir `/sys/fs/fuse/connections'
 `/run/credentials/systemd-sysusers.service', type `ramfs'
 `/boot', type `ext4'
 `/home', type `ext4'
 `/srv', type `ext4'
 `/proc/sys/fs/binfmt_misc', type `binfmt_misc'
 => type matches, dir `/proc/sys/fs/binfmt_misc'
 `/run/netns', type `tmpfs'
 => type matches, dir `/run/netns'
 `/run/netns/newpid1', type `nsfs'
 `/run/netns/newpid1', type `nsfs'
 `/run/user/2062', type `tmpfs'
 => type matches, dir `/run/user/2062'
 `/run/user/2062/doc', type `fuse.portal'
...done
Checking whether filesystem `/dev' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
 `/proc', type `proc'
 => type matches, dir `/proc'
 `/dev', type `devtmpfs'
 => type matches, dir `/dev'
Checking whether filesystem `/home' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
 `/proc', type `proc'
 => type matches, dir `/proc'
 `/dev', type `devtmpfs'
 => type matches, dir `/dev'
 `/dev/pts', type `devpts'
 => type matches, dir `/dev/pts'
 `/run', type `tmpfs'
 => type matches, dir `/run'
 `/', type `ext4'
 `/sys/kernel/security', type `securityfs'
 => type matches, dir `/sys/kernel/security'
 `/dev/shm', type `tmpfs'
 => type matches, dir `/dev/shm'
 `/run/lock', type `tmpfs'
 => type matches, dir `/run/lock'
 `/sys/fs/cgroup', type `cgroup2'
 => type matches, dir `/sys/fs/cgroup'
 `/sys/fs/pstore', type `pstore'
 => type matches, dir `/sys/fs/pstore'
 `/sys/fs/bpf', type `bpf'
 `/proc/sys/fs/binfmt_misc', type `autofs'
 => type matches, dir `/proc/sys/fs/binfmt_misc'
 `/dev/hugepages', type `hugetlbfs'
 => type matches, dir `/dev/hugepages'
 `/dev/mqueue', type `mqueue'
 => type matches, dir `/dev/mqueue'
 `/sys/kernel/debug', type `debugfs'
 => type matches, dir `/sys/kernel/debug'
 `/sys/kernel/tracing', type `tracefs'
 => type matches, dir `/sys/kernel/tracing'
 `/sys/kernel/config', type `configfs'
 => type matches, dir `/sys/kernel/config'
 `/sys/fs/fuse/connections', type `fusectl'
 => type matches, dir `/sys/fs/fuse/connections'
 `/run/credentials/systemd-sysusers.service', type `ramfs'
 `/boot', type `ext4'
 `/home', type `ext4'
 `/srv', type `ext4'
 `/proc/sys/fs/binfmt_misc', type `binfmt_misc'
 => type matches, dir `/proc/sys/fs/binfmt_misc'
 `/run/netns', type `tmpfs'
 => type matches, dir `/run/netns'
 `/run/netns/newpid1', type `nsfs'
 `/run/netns/newpid1', type `nsfs'
 `/run/user/2062', type `tmpfs'
 => type matches, dir `/run/user/2062'
 `/run/user/2062/doc', type `fuse.portal'
...done
Checking whether filesystem `/proc' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
 `/proc', type `proc'
 => type matches, dir `/proc'
Checking whether filesystem `/run' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
 `/proc', type `proc'
 => type matches, dir `/proc'
 `/dev', type `devtmpfs'
 => type matches, dir `/dev'
 `/dev/pts', type `devpts'
 => type matches, dir `/dev/pts'
 `/run', type `tmpfs'
 => type matches, dir `/run'
Checking whether filesystem `/srv' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
 `/proc', type `proc'
 => type matches, dir `/proc'
 `/dev', type `devtmpfs'
 => type matches, dir `/dev'
 `/dev/pts', type `devpts'
 => type matches, dir `/dev/pts'
 `/run', type `tmpfs'
 => type matches, dir `/run'
 `/', type `ext4'
 `/sys/kernel/security', type `securityfs'
 => type matches, dir `/sys/kernel/security'
 `/dev/shm', type `tmpfs'
 => type matches, dir `/dev/shm'
 `/run/lock', type `tmpfs'
 => type matches, dir `/run/lock'
 `/sys/fs/cgroup', type `cgroup2'
 => type matches, dir `/sys/fs/cgroup'
 `/sys/fs/pstore', type `pstore'
 => type matches, dir `/sys/fs/pstore'
 `/sys/fs/bpf', type `bpf'
 `/proc/sys/fs/binfmt_misc', type `autofs'
 => type matches, dir `/proc/sys/fs/binfmt_misc'
 `/dev/hugepages', type `hugetlbfs'
 => type matches, dir `/dev/hugepages'
 `/dev/mqueue', type `mqueue'
 => type matches, dir `/dev/mqueue'
 `/sys/kernel/debug', type `debugfs'
 => type matches, dir `/sys/kernel/debug'
 `/sys/kernel/tracing', type `tracefs'
 => type matches, dir `/sys/kernel/tracing'
 `/sys/kernel/config', type `configfs'
 => type matches, dir `/sys/kernel/config'
 `/sys/fs/fuse/connections', type `fusectl'
 => type matches, dir `/sys/fs/fuse/connections'
 `/run/credentials/systemd-sysusers.service', type `ramfs'
 `/boot', type `ext4'
 `/home', type `ext4'
 `/srv', type `ext4'
 `/proc/sys/fs/binfmt_misc', type `binfmt_misc'
 => type matches, dir `/proc/sys/fs/binfmt_misc'
 `/run/netns', type `tmpfs'
 => type matches, dir `/run/netns'
 `/run/netns/newpid1', type `nsfs'
 `/run/netns/newpid1', type `nsfs'
 `/run/user/2062', type `tmpfs'
 => type matches, dir `/run/user/2062'
 `/run/user/2062/doc', type `fuse.portal'
...done
Checking whether filesystem `/sys' is excluded:
 `/sys', type `sysfs'
 => type matches, dir `/sys'
Skipping `/media': in prunepaths
Skipping `/tmp': in prunepaths
Skipping `/var/spool': in prunepaths


>   sudo plocate --debug myon2.jpg

$ sudo plocate --debug myon2.jpg 
Corpus init done after 0,1 ms.
Dictionary initialized after 0,3 ms.
Hashtable lookups done after 0,3 ms.
trigram 'myo' (6 bytes) decoded to 3 entries
trigram 'yon' (26 bytes) decoded to 20 entries (2 left)
trigram '.jp' (40 bytes) decoded to 30 entries (none left, search is done)
trigram 'jpg' (50 bytes) decoded to 37 entries
trigram '2.j' (33 bytes) decoded to 39 entries (5 left)
trigram 'n2.' (86 bytes) decoded to 70 entries (none left, search is done)
trigram 'on2' (94 bytes) decoded to 78 entries
Intersection done after 0,5 ms. Doing final verification and printing:
Done in 1,5 ms, found 0 matches.

$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs 
(rw,nosuid,relatime,size=3965920k,nr_inodes=991480,mode=755,inode64)
devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,relatime,size=8388608k,mode=755,inode64)
/dev/mapper/Debian-root on / type ext4 (rw,relatime,discard,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs 
(rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs 
(rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs 
(rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13652)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl 
(rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysusers.service type ramfs 
(ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/sda1 on /boot type ext4 (rw,relatime,discard)
/dev/mapper/Debian-home on /home type ext4 (rw,relatime,discard,stripe=32742)
/dev/mapper/plain-srv on /srv type ext4 (rw,relatime,discard)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
(rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/netns type tmpfs (rw,relatime,size=8388608k,mode=755,inode64)
nsfs on /run/netns/newpid1 type nsfs (rw)
nsfs on /run/netns/newpid1 type nsfs (rw)
tmpfs on /run/user/2062 type tmpfs 
(rw,nosuid,nodev,relatime,size=798520k,nr_inodes=199630,mode=700,uid=2062,gid=2062,inode64)
portal on /run/user/2062/doc type fuse.portal 
(rw,nosuid,nodev,relatime,user_id=2062,group_id=2062)

$ cat /etc/updatedb.conf
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph 
/srv/src/chroot"
PRUNEFS="NFS afs autofs binfmt_misc ceph cgroup cgroup2 cifs coda configfs 
curlftpfs debugfs devfs devpts devtmpfs ecryptfs ftpfs fuse.ceph fuse.glusterfs 
fuse.gvfsd-fuse fuse.mfs fuse.rozofs fuse.sshfs fusectl fusesmb hugetlbfs 
iso9660 lustre lustre_lite mfs mqueue ncpfs nfs nfs4 ocfs ocfs2 proc pstore 
rpc_pipefs securityfs shfs smbfs sysfs tmpfs tracefs udev udf usbfs"


Christoph

Reply via email to