Bug 180460 - improve handling of external media
Summary: improve handling of external media
Status: RESOLVED FIXED
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: general (show other bugs)
Version: 4.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 15:20 UTC by S. Burmeister
Modified: 2009-12-14 12:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2009-01-12 15:20:37 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

I have some music and photos on an external harddisk. Since KDE4 does not yet support automounting, the external harddisk is not available when KDE4 starts up. If I check which folder strigi/nepomuk is working on, I see that they work on the external harddisk, which cannot be true, since it is not available. So I guess it is removing data, which it obviously has to re-add later on.

If this is true, this means that a lot of CPU is wasted when removing and re-addign data. It would be nice if there was some smarter way to handle this kind of situation, either automatically, or by allowing the user to give nepomuk/strigi a hint on which folders are removeable and which are not.

For example, if the external harddisk is mounted in /media/external and the user selected /media/external (which includes the sub-tree) to be indexed, strigi/nepomuk should do nothing, i.e. not remove any data, if that folder, i.e. the "root folder of /media/external", is not available. It should not show results from it either.

If however /media/external/music, i.e. a sub-folder of /media/external) does not exist anymore, but /media/external does, it can update its index and remove the data about /media/external/music.

The only way strigi/nepomuk would remove data for /media/external while /media/external not being available would be, if the user de-selects that folder in the index settings.
Comment 1 Sebastian Trueg 2009-12-14 12:21:47 UTC
Fixed in KDE 4.4 with the removable media service which takes care of removable media. It even allows to search for non-available but indexed files and then asks to insert the appropriate removable medium.