https://bugs.kde.org/show_bug.cgi?id=438434

--- Comment #6 from Martin Steigerwald <mar...@lichtvoll.de> ---
@Stefan: I am grateful for all you did for Baloo. I know you improved it quite
a bit. So thank you. There is nothing personal in here. First off I do not even
know who implemented the dependency on the device number. But also in the case
you did: You are not your code and you are also not your decision to do so. As
you stepped down as a maintainer I am going to work on this with anybody who is
willing to consider my report.

@Tagwerk19. Thank you for your response. I am willing to provide the
information you requested. Here it is:

I created a file and told Baloo to index it with "balooctl index".

% LANG=en balooshow -x testfile.txt
23479b00000021 33 2312091 testfile.txt [/home/martin/testfile.txt]
        Mtime: 1623421630 2021-06-11T16:27:10
        Ctime: 1623421630 2021-06-11T16:27:10
        Cached properties:
                Line Count: 1

Internal Info
Terms: Mplain Mtext T5 T8 X20-1 hello penguin 
File Name Terms: Ftestfile Ftxt 
XAttr Terms: 
lineCount: 1

% LANG=en stat testfile.txt
  File: testfile.txt
  Size: 14              Blocks: 8          IO Block: 4096   regular file
Device: 21h/33d Inode: 2312091     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  martin)   Gid: ( 1000/  martin)
Access: 2021-06-11 16:27:10.953499381 +0200
Modify: 2021-06-11 16:27:10.953499381 +0200
Change: 2021-06-11 16:27:10.953499381 +0200
 Birth: 2021-06-11 16:27:10.953499381 +0200



After reboot I get:

% LANG=en stat testfile.txt
  File: testfile.txt
  Size: 14              Blocks: 8          IO Block: 4096   regular file
Device: 21h/33d Inode: 2312091     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  martin)   Gid: ( 1000/  martin)
Access: 2021-06-11 16:29:54.518299009 +0200
Modify: 2021-06-11 16:27:10.953499381 +0200
Change: 2021-06-11 16:27:10.953499381 +0200
 Birth: 2021-06-11 16:27:10.953499381 +0200

% LANG=en balooshow -x testfile.txt
23479b00000021 33 2312091 testfile.txt [/home/martin/testfile.txt]
        Mtime: 1623421630 2021-06-11T16:27:10
        Ctime: 1623421630 2021-06-11T16:27:10
        Cached properties:
                Line Count: 1

Internal Info
Terms: Mplain Mtext T5 T8 X20-1 hello penguin 
File Name Terms: Ftestfile Ftxt 
XAttr Terms: 
lineCount: 1


Of course that is no guarantee that the device number did not change as the
re-indexing of already indexed files happened.

I did another "balooctl purge" and it now is indexing a reasonable amount of
files:

% find . -type f -not -path '*/\.*' | wc -l
521488

% LANG=en balooctl status
Baloo File Indexer is running
Indexer state: Indexing file content
Total files indexed: 551,532
Files waiting for content indexing: 490,887
Files failed to index: 0
Current size of index is 367.83 MiB

And yes, I have been through quite some issues with Baloo (and Akonadi Search).
There is another one with a file that causes the file extractor to go bonkers.
I excluded the directory it is in.

I will keep that test file around for a while. Should Baloo try to index all
files again I will have another look at the device number. Still I think it is
broken to assume that the device number does not change. There are various
examples where it can change. One would be a desktop PC with two or more
controllers whose drivers compete for sda/sdb/sdc at every boot. I'd assume
that all files in the users home directory are always on the very same
filesystem by default.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to