Replace inotify #29
Labels
No labels
area/api
area/content_model
area/framework
area/io
area/presentation
area/preservation
area/rdf
area/security
area/submission
area/ui
p
critical
p
high
p
low
p
medium
s
blocked
s
done
s
progress
s
testing
s
wontfix
t
bug
t
documentation
t
enhancement
t
feature
t
test
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scossu/pocket_archive#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The inotify interface used in
pkar_watchis quite handy but has two main problems: a) it only works with Linux; and b) it doesn't seem to detect files coming from SMB clients.The latter issue is quite annoying as it prevents Pocket Archive being used over SMB.
Alternatives can be considered:
A
poll()interface, such as the one provided by LuaPosix. This is the most minimalistic cross-platform option. Slow and single-threaded, but for the job it has to do, it doesn't matter. It needs some workarounds to be able to detect new files in a given directory (if it can even work).libev or libuv bindings. These are wrappers around several back ends that cover the full Unix spectrum. The latter is higher-level and has many more features that Pocket Archive doesn't need.
cqueues. This is also a Unix-wide wrapper, and it is very widely used. Probably much larger than necessary.