aboutsummaryrefslogtreecommitdiffstats
path: root/src/inotify_update.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* inotify_update: follow symlinksMax Kellermann2010-05-301-2/+1
| | | | | | This is probably unsafe, and doesn't protect against symlink loops, but we will eventually add this when we bring update*.c and inotify*.c closer together.
* inotify_update: fix assertion failure when music dir is deletedMax Kellermann2010-05-301-1/+7
| | | | | | | | This shouldn't really happen, but insane users might delete/rename the music directory while MPD runs. What was even more insane was that MPD crashed due to this. This is a workaround - there is currently nothing useful we can do in this case; except maybe poll for the music directory to reappear, but that's too much trouble for a user error.
* inotify_update: start update when directory is createdMax Kellermann2010-04-131-2/+6
| | | | | | | This is useful at the maximum depth level, to update newly created directories. It is however questionable if the hard-coded 5 seconds delay is enough to create new directory trees with all of their files, but we might make that delay configurable in the future.
* inotify: added setting "auto_update_depth"Max Kellermann2010-04-131-5/+28
| | | | | Limits the depth of the watched directories. This is useful to keep resource usage down and speed up MPD startup.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* fixed several gcc warnings on unused debug variablesMax Kellermann2009-12-141-0/+1
|
* added missing config.h includes for extended LFS supportMax Kellermann2009-11-111-0/+1
| | | | | All sources which might work with large files must include config.h, to get Large File Support on 32 bit platforms.
* automatically update the database with Linux inotifyMax Kellermann2009-09-251-0/+349
This patch implements a light-weight inotify library, and watches all directories below the music directory. It updates all directories where files changed after a delay of 5 seconds.