GNOME Bugzilla – Bug 125177
option for disabling library update?
Last modified: 2006-03-12 11:38:41 UTC
It would be nice if there was an option to not scan the hard drive every time rhythmbox starts. This tends to take a long time on a resonable amount of oggs (~7GB) and on a laptop hard drive. This could either be implimented as a gconf key or in the preferences, I'm not real picky.
Let's admit it - Rhythmbox is just broken. It shouldn't needlessly scan your hard disk on start up. The way to fix this is to cache the mtime not just of the files, but also of the directories they're in. That way if nothing has changed, we just do a few stats and we're done.
*** Bug 124830 has been marked as a duplicate of this bug. ***
*** Bug 123894 has been marked as a duplicate of this bug. ***
*** Bug 126849 has been marked as a duplicate of this bug. ***
*** Bug 120259 has been marked as a duplicate of this bug. ***
*** Bug 127911 has been marked as a duplicate of this bug. ***
*** Bug 129798 has been marked as a duplicate of this bug. ***
*** Bug 140753 has been marked as a duplicate of this bug. ***
Could famd be used to notify rb of a filesystem update like it does for nautilus? That way, it happens automagically for the user.
Yep, and there is a start at that implemented in rhythmbox-devel@gnome.org--2004/rhythmbox--main--0.9. But it needs more work...
Well, we use file monitoring now. But actually my original plan for automatically updating the library based on the toplevel directory mtime wouldn't work. So we do need to scan all the folders on startup still.
Renaming this one since file monitoring is done. We need to think about whether a preference for not using file monitoring and library updating on startup is necessary.
/!\ the top level mtime doesn't change if files are added to a sub directory. only the mtime of the holding directory changes.
Also, the mtime of a directory doesn't change when one of the files does, only when files are added or removed. This means that to check for changed files, we have to look at the mtime of every file.
Created attachment 60685 [details] [review] patch We already have a "--no-update" command line option, it just wasn't getting checked. This patch make RhythmDB look at the option and not stat files if it is set. I'm not sure about the wording of the description of the command-line option.
I've committed the patch to cvs. You can now tell RB not to check for updated files by passing --no-update.