Package: plocate
Version: 1.1.15-1
Severity: normal
X-Debbugs-Cc: juli...@ubuntu.com

plocate considers all mount points of a btrfs as bind mounts,
so when I have a somewhat usual case of subvolumes, e.g.

    /dev/mapper/ubuntu--vg-root / btrfs defaults,compress=zstd,subvol=@ 0 1
    /dev/mapper/ubuntu--vg-root /var/cache/squid-deb-proxy btrfs 
defaults,subvol=@squid 0 2
    /dev/mapper/ubuntu--vg-root /var/log btrfs defaults,subvol=@log 0 2
    /dev/mapper/ubuntu--vg-root /var/cache/apt/archives btrfs 
defaults,subvol=@apt 0 2
    /dev/mapper/ubuntu--vg-root /mnt btrfs defaults 0 2

plocate does not find anything as it considers / to be a bind mount and
then updatedb exits immediately. Special casing / also would not work,
it would not locate anything in the other subvolumes.

Originally reported at 
https://bugs.launchpad.net/ubuntu/+source/plocate/+bug/1968190


-- System Information:
Debian Release: bookworm/sid
  APT prefers kinetic
  APT policy: (500, 'kinetic'), (500, 'jammy-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-25-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages plocate depends on:
ii  libc6       2.35-0ubuntu3
ii  libgcc-s1   12-20220319-1ubuntu1
ii  libstdc++6  12-20220319-1ubuntu1
ii  liburing2   2.1-2build1
ii  libzstd1    1.4.8+dfsg-3build1

plocate recommends no packages.

Versions of packages plocate suggests:
ii  powermgmt-base  1.36
ii  systemd-sysv    249.11-0ubuntu3

-- Configuration Files:
/etc/updatedb.conf changed [not included]

-- no debconf information

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

Reply via email to