我遇到了由du生成的圆形目录结构警告,并在我的CentOS服务器上find问题。
我有两台FreeNAS服务器通过NFS将多个数据集导出,这些数据集以分层结构安装在CentOS服务器上。 例如:
FreeNAS datasets: u, home, user1, user2 CentOS file hierarchy: /u /u/home /u/home/user1 /u/home/user2
当我跑步find这棵树的任何地方时,他们感到不安,告诉我有一个循环的文件结构。
find: File system loop detected; './u/home/user1' is part of the same file system loop as '/u/home'. du: WARNING: Circular directory structure. This almost certainly means that you have a corrupted file system. NOTIFY YOUR SYSTEM MANAGER. The following directory is part of the cycle: './u/home/user1'
我觉得这个警告发生是因为每个数据集的挂载点都有相同的inode号。 不过,我认为这不是问题,因为每个都是它自己的文件系统。
我是正确的还是在这里有一个问题呢? 如果有问题,我该如何解决? 如果没有,我可以告诉find和du不报告这些警告?