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 397349 - Checking all dirs at startup
Checking all dirs at startup
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Jamie McCracken
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2007-01-16 18:47 UTC by Bjoern Gruening
Modified: 2010-05-17 13:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bjoern Gruening 2007-01-16 18:47:46 UTC
At the moment tracker don't realize if any directory has changed or deleted when trackerd don't run.

Steps to reproduce:
1. Shutdown trackerd
2. Rename or delete one directory
3. Start trackerd

Actual results:
Tracker finds entries in the deleted or modified directorys but they dosn't exists there.

Expected results:
Tracker should only find the entries, which really exists.

 
So it would be nice if tracker can check all dirs at startup, so trackerd can realize any removed directory.
Comment 1 Michael Biebl 2007-01-19 04:05:15 UTC
An equally important point:
If you attach meta data (using tracker-tag) to a file and move if when trackerd is not running, the connection between the meta data and the file is lost. This means you have to retag your files.
I see two (or tree) posibilites:
1.) generate a hashsum over the file. So even when the file was moved (and tracker not running), it should be possible to match the metadata against the file again.

Problem: The content of the file could have been changed, which would also alter the hashsum.

2.) Attach a label/UUID to the file using XATTR to track the file. The meta data is still stored in trackers own db. 

Problem: Not all fs have XATTR enabled by default. Meta data is not accessible for other indexers like strigi

3.) Attach the meta data directly to the file using XATTR.

Problem: (Size)simitations of XATTR
Comment 2 Jamie McCracken 2007-03-05 00:26:09 UTC
dirs are now checked for deletions at start up in svn

only lightly tested so pls reopen bug if  problem persists
Comment 3 Martyn Russell 2010-05-17 13:30:19 UTC
Moving "Indexer" component bugs to "General" since "Indexer" refers to the old 0.6 architecture