After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621112 - Resources not deleted from store when files removed from removable media
Resources not deleted from store when files removed from removable media
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Miners
0.9.x
Other Linux
: Normal critical
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2010-06-09 13:34 UTC by Aleksander Morgado
Modified: 2010-06-15 09:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aleksander Morgado 2010-06-09 13:34:43 UTC
Tracker will only detect files being removed if actually monitoring the directories via inotify watches. If files are removed while tracker is not monitoring them, the re-check won't detect the deleted files.

Steps to reproduce:
 * Tracker running, make sure IndexRemovableMedia=TRUE
 * Connect USB disk, tracker indexes contents
 * Eject USB disk, and connect to some other PC.
 * Remove files from the USB disk in the other PC
 * Eject from the other PC, connect again back to PC where tracker is running
 * Tracker re-indexes contents, but fails to detect if files were removed, so they will still be shown in search results.

Same issue applies to partitions configured as locations to be indexed by tracker. So if you have IndexRecursiveDirectories=/opt and /opt is actually a partition which can be unmounted, you can unmount it, mount it in some other place, remove files, mount it again in /opt, and tracker won't notice the removed files.
Comment 1 Martyn Russell 2010-06-15 09:22:11 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.