Got a real puzzle around how #Linux handles NFS mounts. From the same server they have the same device ID. This means things like fuser don't work.
Files that are opened by a process are found in /proc/PID/fd and fuser stat()s them to find the device ID, then it scans the mounts to match so you can do things like "who has files open under /mydir"?
For NFS this just does not work because all mounts from the same server will state they have files open.
Someone suggested using the fdinfo directory. This matches against the mnt_id field. Too bad it doesnt do it uniquely for sockets but still for mount points I have a solution.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!