by spenczar5 · 3y ago · 0 comments
I get that it's fun to experiment with BPF, but it's also useful to see how many tools already exist. BPF is powerful, yes - maybe too powerful, and it's often not the best tool for the job.
https://man7.org/linux/man-pages/man7/fanotify.7.html
I think fanotify does xattrs, but I haven't tested.
Would be interesting to compare the chances of race conditions with inotify vs BPF for this contrived use-case.