<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>461820</bug_id>
          
          <creation_ts>2022-11-14 14:13:12 +0000</creation_ts>
          <short_desc>Baloo seems to index my files more than once.</short_desc>
          <delta_ts>2022-11-21 09:37:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-baloo</product>
          <component>general</component>
          <version>5.99.0</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>401863</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rainer Sabelka">saba</reporter>
          <assigned_to>baloo-bugs-null</assigned_to>
          <cc>tagwerk19</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2173210</commentid>
    <comment_count>0</comment_count>
    <who name="Rainer Sabelka">saba</who>
    <bug_when>2022-11-14 14:13:12 +0000</bug_when>
    <thetext>SUMMARY
Baloo seems to index my files more than once.

STEPS TO REPRODUCE
My home directory has 2.4 M files in it:
$ find /home/rainer/ -type f | wc -l
2402092

But baloo thinks I have 6 M files:

@ balooctl status
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: &quot;Unknown&quot; msgid_plural: &quot;&quot; msgctxt: &quot;&quot;
kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: &quot;Idle&quot; msgid_plural: &quot;&quot; msgctxt: &quot;&quot;
Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 6,396,166
Files waiting for content indexing: 0
Files failed to index: 100
Current size of index is 46.45 GiB

And if I &quot;baloosearch something&quot; it outputs each result three or four times.

SOFTWARE/OS VERSIONS
Linux: OpenSuse Tumbleweed 20221112
KDE Plasma Version:  5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175484</commentid>
    <comment_count>1</comment_count>
    <who name="">tagwerk19</who>
    <bug_when>2022-11-20 17:55:00 +0000</bug_when>
    <thetext>Have a look at:
    https://bugs.kde.org/show_bug.cgi?id=402154#c12

It seems that with BTRFS, with multiple subvols, gives &quot;varying&quot; device numbers - ones that are not stable reboot to reboot.

Baloo relies on a combination of the device number and the inode to provide an &quot;id&quot; of the file, and expects a one-to-one relation between the &quot;id&quot; and the filename. If you are using BTRFS and multiple subvols, this breaks down. This catches OpenSuse / Tumbleweed :-(

Marking this as Confirmed for now, will probably flag it as a duplicate of Bug 402154 in due course</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175529</commentid>
    <comment_count>2</comment_count>
    <who name="">tagwerk19</who>
    <bug_when>2022-11-20 23:01:21 +0000</bug_when>
    <thetext>Also, an earlier, Bug 401863</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175530</commentid>
    <comment_count>3</comment_count>
    <who name="">tagwerk19</who>
    <bug_when>2022-11-20 23:02:16 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 401863 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175965</commentid>
    <comment_count>4</comment_count>
    <who name="Rainer Sabelka">saba</who>
    <bug_when>2022-11-21 09:37:04 +0000</bug_when>
    <thetext>I don&apos;t have btrfs, I&apos;m on ext4.
But I had to copy my home directory once to another device, due to a failing disk. This would explain duplicate entries, but not the same file occurring three on four times.
However, I&apos;m on OpenSuse Tumbleweed, with new  versions of kernels, systemd, etc. every few days, so maybe devises are getting enumerated differently from time to time and devices ids might not be as stable as one might assume, even for non-btrfs volumes.
So I think this is indeed a duplicate!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>