On Fri, Mar 25, 2022 at 07:31:16AM +1100, Dave Chinner wrote: > > What about other objects' attributes, statistics? Remember this > > started out as a way to replace /proc/self/mountinfo with something > > that can query individual mount. > > For individual mount info, why do we even need to query something in > /proc? I mean, every open file in the mount has access to the mount > and the underlying superblock, so why not just make the query > namespace accessable from any open fd on that mount? The current most problematic situation is in systemd. We get generic notification (poll() on mountinfo) that something has been modified in the mount table, and then we need to parse all the file to get details. So, the ideal solution would be notification that points to the FS and interface to read information (e.g. getvalues()) about the FS. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com