2015-11-04 65 views
-1

我目前遇到find命令的問題,我不確定發生了什麼。 我在OpenSolaris11 [Nexenta存儲設備]上運行此操作。查找在solaris上返回意外輸出的命令

如果我使用:

find /volumes/stor01/home/home/user -name "*.abc" -exec ls -al {} \; 

find /volumes/stor01/home/ -name "*.abc" -exec ls -al {} \; 

我得到的預期收益[我已經依偎在用戶家裏區中的文件。總共約3TB的/家位置

然而,這是它開始變得陌生的地方。如果我上了另一個目錄,到/ volumes/stor01/[約12TB],我開始看到錯誤,並且既沒有顯示預期文件,但是我輸入了下面列出的任何一個文件夾,它們都可以正常工作:

find /volumes/stor01 -name "*.abc" -exec ls -al {} \; 
find: /volumes/stor01/storage/.zfs/shares: No such file or directory 
find: /volumes/stor01/storage/rsync_27thMay10am: No such file or directory 
find: /volumes/stor01/storage/.$EXTEND: No such file or directory 
find: /volumes/stor01/storage/storage: No such file or directory 
find: /volumes/stor01/VM_Backups: No such file or directory 
find: /volumes/stor01/.mapping.0: No such file or directory 
find: /volumes/stor01/scratch: No such file or directory 
find: /volumes/stor01/VMWareStore: No such file or directory 
find: /volumes/stor01/notes: No such file or directory 
find: /volumes/stor01/.mapping.2: No such file or directory 
find: /volumes/stor01/development: No such file or directory 
find: /volumes/stor01/source: No such file or directory 
find: /volumes/stor01/nim1: No such file or directory 
find: /volumes/stor01/office: No such file or directory 
find: /volumes/stor01/applications: No such file or directory 
find: /volumes/stor01/.mapping.1: No such file or directory 
find: /volumes/stor01/.$EXTEND: No such file or directory 
+0

這些文件是什麼?晃來晃去的軟鏈接? –

+0

否。其中大多數實際上是進一步的文件夾[ZFS份額更準確],即: 存儲 VM_Backups VMWareStore 開發 等等。 如果我單獨做任何文件夾,一切正常...... – bomahony

+0

好吧,試着在'truss'下運行它,看看系統調用實際上是在獲得'ENOENT':'truss -f -vall -o/path/to/output/file find ...'。然後搜索輸出文件,例如'grep VMWareStore .../output/file'。 –

回答

1

原來我已經啓用了快照文件夾的可見性,並且特殊的字符看起來像是在尋找摔倒。隱藏這一切,一切工作。