文件業務
在Mac OS X v10中。4及更高版本:
搜索和數據完整性
雖然搜索前進的文件的副本(未之後)的複製具有:
- 在一起,這兩件事表示文件業務。
MACS
是ID of Finder。
如果複製到文件系統,而無需對屬性,比如那些支持
雖然搜索的進行文件的副本(不是之後)的複製具有對應:
- 點下劃線包含必要的擴展屬性(xattr)的
._
文件。
相關
Why are dot underscore ._ files created, and how can I avoid them? - 向不同
搜索兼容性與廣泛的文件系統和操作系統
的如果使用查找副本被非正常中斷,則的brok
MACS
存在應確保破損/業務是可識別的到:
- OS X的所有版本
- 的Mac OS X
- 的Mac OS 9的所有版本和操作系統的一些早期版本的經典。
例
的文件沒有擴展屬性。
之前從JHFS +複製到捲上的空example
目錄使用MS-DOS(FAT32):
[macbookpro08:~] gjp22% date
Fri 11 May 2012 17:24:29 BST
[macbookpro08:~] gjp22% ls [email protected] /Users/gjp22/Documents/uk/ac/brighton/collaborate/bigfile.dmg
-rw-r--r-- 1 gjp22 staff 1.4G 11 May 17:20 /Users/gjp22/Documents/uk/ac/brighton/collaborate/bigfile.dmg
[macbookpro08:~] gjp22% xattr /Users/gjp22/Documents/uk/ac/brighton/collaborate/bigfile.dmg
[macbookpro08:~] gjp22% diskutil list | grep FAT32
1: DOS_FAT_32 FAT32 2.0 GB disk3s1
[macbookpro08:~] gjp22% ls [email protected] /Volumes/FAT32/example
total 16
drwxrwxrwx 1 gjp22 staff 4.0K 11 May 17:24 .
drwxrwxrwx 1 gjp22 staff 4.0K 11 May 11:32 ..
值的範圍內使用查找器來開始複製,完成
brokMACS
前後擴展屬性com.apple.FinderInfo
的:
[macbookpro08:~] gjp22% date
Fri 11 May 2012 17:25:08 BST
[macbookpro08:~] gjp22% ls [email protected] /Volumes/FAT32/example
total 311320
drwxrwxrwx 1 gjp22 staff 4.0K 11 May 17:25 .
drwxrwxrwx 1 gjp22 staff 4.0K 11 May 11:32 ..
-rwxrwxrwx 1 gjp22 staff 4.0K 11 May 17:25 ._bigfile.dmg
[email protected] 1 gjp22 staff 152M 11 May 17:25 bigfile.dmg
com.apple.FinderInfo 32B
[macbookpro08:~] gjp22% xattr -l /Volumes/FAT32/example/bigfile.dmg
com.apple.FinderInfo:
00000000 62 72 6F 6B 4D 41 43 53 00 00 00 00 00 00 00 00 |brokMACS........|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020
搜索成功完成副本後
這擴展屬性被刪除:
[macbookpro08:~] gjp22% date
Fri 11 May 2012 17:29:19 BST
[macbookpro08:~] gjp22% xattr -l /Volumes/FAT32/example/bigfile.dmg
[macbookpro08:~] gjp22% ls [email protected] /Volumes/FAT32/example
total 3000016
drwxrwxrwx 1 gjp22 staff 4.0K 11 May 17:29 .
drwxrwxrwx 1 gjp22 staff 4.0K 11 May 11:32 ..
-rwxrwxrwx 1 gjp22 staff 1.4G 11 May 17:20 bigfile.dmg
只是好奇,你怎麼知道它使用專用API? – robottobor 2009-01-15 00:06:26
蘋果郵件列表上的帖子。 – 2009-01-18 16:59:15