]> granicus.if.org Git - psmisc/commit
fuser: Less confused about duplicate dev_id
authorCraig Small <csmall@dropbear.xyz>
Fri, 22 May 2020 06:21:10 +0000 (16:21 +1000)
committerCraig Small <csmall@dropbear.xyz>
Fri, 22 May 2020 06:29:07 +0000 (16:29 +1000)
commit5c979b38253d187a8ecb8e52a0878b8bb668894f
tree90fe014870c26b3ed4392dea15b1270d5320f2d7
parent46d5830c589ddf39e30339bd89cf2262e3251bc3
fuser: Less confused about duplicate dev_id

NFS mounts from the same server have the same device ID. This means
using the -m option a process using one of those mounts will be
"found" in all of the others too.

lsof doesn't have this confusion as it checks the real path against
the mount point and only matches if they start the same.

I think it would be confused with double stacked NFS shares such
as /nfs/SHARE1/blah/SHARE2 with the open file in SHARE2 but
there are limits.

References:
 psmisc/psmisc#10
ChangeLog
src/fuser.c
src/fuser.h