6feb4b4c97
Support for FLAC sample size
Andrew Polden
2021-10-10 13:41:47 +11:00
a8325705ef
Support other vorbis comments
Andrew Polden
2021-10-10 13:41:19 +11:00
289a4f39bb
Support YEAR vorbis comment
Andrew Polden
2021-10-10 13:39:11 +11:00
1d363c209f
Use timevals everywhere where it is possible, including API between main loop and event dispatchers. This simplifies code and eliminates a bug, when kevent dispatcher is called with 0 timeout.
Gleb Smirnoff
2019-05-08 14:19:46 -07:00
cad8c922f0
Consolidate start/finish of monitor on different platforms into one API. Monitor is started either before main loop, if scanner isn't running, or in the main loop once we finished waiting for the scanner.
Gleb Smirnoff
2018-01-24 22:24:45 -08:00
ee912576b3
Separate platform indepenent code into monitor.c, and move inotify(7) specific code to monitor_inotify.c. Both monitor_inotify.c and monitor_kqueue.c provide their functions for adding and removing watches. Prefix these functions with monitor_.
Gleb Smirnoff
2018-01-17 00:07:43 -08:00
109d63cb11
Wrap up version 1.3.0
Justin Maggard
2020-11-11 16:06:52 -08:00
f7604117c0
Fix more compilation mistakes from 338ee4bd7bb44 in TiVo.
Gleb Smirnoff
2018-01-15 13:22:06 -08:00
3e8da9bb1a
Return back checking file for sparseness. Use lseek(SEEK_HOLE) if supported by the system, otherwise fallback to block check. This allows to workaround bugs with SMB client and not introduce new bugs for filesystems with compression and deduplication.
Gleb Smirnoff
2018-01-12 22:40:15 -08:00
debb502ff3
Fix compilation mistakes from 338ee4bd7bb44 in TiVo.
Gleb Smirnoff
2018-01-12 21:41:51 -08:00
7428b8dede
This file is derived from code by Bernard Spil. Fix copyright.
Gleb Smirnoff
2018-01-08 14:29:45 -08:00
1cb676f51d
Add license and my copyright to monitor_kqueue.c. The file contains portions of code that were made either by William or by Stefan. Since I am unsure about that, put them both. To be clarified later.
Gleb Smirnoff
2017-12-29 16:17:40 -08:00
a4dc9a1996
Add nginx's and my copyright to the files that borrow ideas from nginx.
Gleb Smirnoff
2017-12-29 16:16:58 -08:00
4db229534b
Initialize libav before enabling kqueue monitor, missed in b2613161329.
Gleb Smirnoff
2017-12-29 15:52:47 -08:00
d02866a084
Filled up event list isn't something warning.
Gleb Smirnoff
2017-12-29 15:29:48 -08:00
d6374fa4e2
Fix SQL queries that intended to match directories. Code originates from FreeBSD ports extra patch. Probably it was working on previous versions of SQLite, or on previous minidlna schema.
Gleb Smirnoff
2017-12-29 15:20:09 -08:00
4ba6f1fa27
Fix stupid logic typo, that prevented monitoring from working.
Gleb Smirnoff
2017-12-29 15:19:41 -08:00
42f0630198
Remove (st.st_blocks<<9 >= st.st_size) check. It may fail if a file system supports deduplication, compression and other features.
Gleb Smirnoff
2017-12-29 15:17:10 -08:00
dfdd81a09f
Wrap struct event into struct watch. For now this is just code bloat. We might start monitoring files later. We also might want to create a tree/list of all watches if we ever need to search within them, like the inotify module does.
Gleb Smirnoff
2017-12-29 11:18:44 -08:00
5e320f2798
Add monitoring support via kqueue(2). Based on patch from FreeBSD ports, authored by wg@FreeBSD.org and se@FreeBSD.org. However, this version doesn't create any thread, it uses main event dispatcher.
Gleb Smirnoff
2017-12-29 02:05:46 -08:00
7ba9e52fc8
Add kqueue event module. Code inspired by nginx. There are a lot of room for optimization here, this is just first working version.
Gleb Smirnoff
2017-12-28 10:39:17 -08:00
aefe4dd0bf
With current forking model of minidlna, we no longer need the event module in the child, so shut it down. While here, make any error from fork() a fatal error.
Gleb Smirnoff
2017-12-28 10:36:36 -08:00
33fb664fba
Failure of event_module init is fatal.
Gleb Smirnoff
2017-12-28 02:39:24 -08:00
8fcb1258b4
Shut up compilation warning.
Gleb Smirnoff
2017-12-27 17:26:41 -08:00
f9a78d598e
Support for pluggable event modules, stage 1. Take out select() loop and associated code into a separate module select.c. Detailed list of changes down below.
Gleb Smirnoff
2017-12-27 15:08:40 -08:00
04e243c85c
Add handy functions for timeval manipulations. Obtained from FreeBSD.
Gleb Smirnoff
2017-12-27 14:24:27 -08:00
63f725f8c9
Fix DEBUG build.
Stefan Esser
2017-12-25 18:48:58 -08:00