My Linux system displays statistics for file systems mounted on NFS, something like this:
Remote Path Mounted-on Stats
server1:/some/path/name /path1 100 GB free
server2:/other/path/name /path2 100 GB free
Total: 200 GB free
It works great. The problem is that the same file system on the NFS server was installed twice on my client:
Remote Path Mounted-on Stats
server1:/some/path/name /path1 100 GB free
server1:/some/path/name2 /path2 100 GB free
Total: 200 GB free
server1 /some/path/nameand /some/path/name2actually are on the same file system, which contains 100 GB for free, but I mistakenly add them and report 200 GB for free.
Is there any way to find that they are in the same section?
Approaches that won't work:
- "Use
statfs()": statfs()returns a struct statfs, which is the field "ID file system" f_fsid. Unfortunately, it is undefined and is nullified by NFS. - " ". .
- " , ". . ,
statfs() , .
, , ,
.
!