3 ms·
How does this work under the covers on Linux? Is it using eBPF, or is it simply an abstraction over inotify? I'm particularly interested in something like this
by GordonS 4y ago
How does this work under the covers on Linux? Is it using eBPF, or is it simply an abstraction over inotify?
I'm particularly interested in something like this, but which will include information about what process made the change, and which user it was running as at the time.
- bertman 4y ago>or is it simply an abstraction over inotify? Looks like it: https://github.com/e-dant/watcher/blob/989147b183ee0547d71a14681c0b72d5b12a30e0/include/watcher/adapter/linux/watch.hpp#L9 https://github.com/e-dant/watcher/blob/989147b183ee0547d71a1...
- e-dant 4y agoI’ve gone back and forth with inotify on Linux. Ned14 gave a great rundown of the ideal next steps for a best-possible implementation. You can check out issue/10 for a full description of how it works now, why neither inotify nor our current solution is ideal, and where the project will be going next.
- GordonS 4y agoI'm sorry, I don't know what issue/10 means? Is it an e-zine or something? (apologies if this is obvious, I'm extremely tired!)
- e-dant 4y agohttps://github.com/e-dant/watcher/issues/10 https://github.com/e-dant/watcher/issues/10
- GordonS 4y agoAh, sorry, that really should have been obvious :D Have you looked into using eBPF for tracking file system changes at any point? (I don't mean for this project, as it's clear you're taking a particular approach that will work across platforms).