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

--- Comment #6 from Adam Fontenot <adam.m.fontenot+...@gmail.com> ---
(In reply to tagwerk19 from comment #5)
> (In reply to Adam Fontenot from comment #3)
> > ... Maybe an option could be provided, but the ability to
> > manually "opt-in" specific directories by adding them to the indexing list
> > is probably good enough ...
> Wandering off into the territory of "personal preferences" here, but I trust
> the idea of fewest surprises...
Right - I think the one case where we can say indexing definitely *shouldn't*
happen is when something is mounted "temporarily" - although maybe that isn't
clearly defined yet. Basically, if there's any reason to think the path might
be expected to change?

I agree with you that something's being in fstab is a good sign it's
"permanent" and should be indexed. However, I think if Baloo is going to do
that, several footguns need to be avoided:

 * The heuristics for determining which filesystems are permanent need to be
pretty much flawless. You could have an fstab set up so that multiple USB
drives are all mounted on demand to ~/usb. That's pretty much a worst case
scenario. Files suddenly appear and disappear, Baloo trashes the database
trying to delete everything, etc.
 * Some method for determining that a given file system is network-based is
probably needed; I think content indexing should probably be turned off for
these file systems by default. The user could always opt in for individual
directories as needed.
 * Baloo needs to have a mechanism where downstream search tools don't see
files on unmounted file systems in their searches.

In the mean time, I think the right move is to fix issues like this one (Baloo
indexing huge file systems - multiple terabytes in my case - over the network)
by changing the defaults so that Baloo never crosses file systems unless the
user manually opts a folder in. We can make this work better when the issues
above are solved.

Users with permanent file systems they want indexed are in a better position
anyway. Because their paths are static, they can manually include things in the
indexing list easily. I think that's one good reason to lean in the direction
of not trying to do too much magic in Baloo by default. When Baloo is including
stuff in directories that don't have static locations and you want it to stop,
there's not much you can do about that.

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

Reply via email to