Bug 86781
Summary: | Fanotify does not create events for double mounted file systems. | ||
---|---|---|---|
Product: | File System | Reporter: | Heinrich Schuchardt (xypron.glpk) |
Component: | Other | Assignee: | fs_other |
Status: | NEW --- | ||
Severity: | normal | CC: | eparis, jack, szg00000, xypron.glpk |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.17.1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Heinrich Schuchardt
2014-10-23 20:34:06 UTC
I believe this was a deliberate design choice. Eric, do you remember why we ended up tracking events per mountpoint and not per superblock? (In reply to Jan Kara from comment #1) > I believe this was a deliberate design choice. Eric, do you remember why we > ended up tracking events per mountpoint and not per superblock? I guess referring to mounts in the API is fine. Anyway there is no object superblock in user space. My suggestion is simply to determine mounts by analyzing the superblock referenced by the dentry instead of analyzing a path structure. So what I suggest is: for each mount of dentry-superblock { if mount-root is ancestor of dentry-inode { for each fanotify-group of mount { create event; } } } |