On Thu 19-01-17 16:28:09, Amir Goldstein wrote: > My employer has a use case of watching file system changes > over millions of directories. > > It so happens that the same product (cloud sync) also runs on > Windows and on MacOS. both OS have a scalable API to monitor > file systems changes over millions of directories. > > Since the product requires being notified on filename events > (e.g. create/delete/rename), the only available option on Linux is > inotify, but inotify does not scale well to millions of directories > use case and not a the right tool for the job in general. > > For that purpose, I implemented fanotify super block watch [1], > to be able to: > 1. report filename events > 2. watch over file system root (as opposed to mount point) > 3. report event information using struct file_handle, > instead of keeping open file descriptor per event Yeah, I think this would be worth a discussion. I've got other requests for similar functionality so Amir is not the only one with the needs. But given how unsuccessful we have been with file change notification API in the past I'm very conservative about its extensions and would prefer to have wider discussion about this. Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html