подготовка
С OS X Mountain Lion:
macbookpro08-centrim:~ gjp22$ ls /Volumes/spare/touched.txt
ls: /Volumes/spare/touched.txt: No such file or directory
macbookpro08-centrim:~ gjp22$ touch /Volumes/spare/touched.txt
Результат
Благодаря fileXray:
macbookpro08-centrim:~ gjp22$ sudo fileXray /Volumes/spare/touched.txt
Password:
path = spare:/touched.txt
# Catalog File Thread Record
# Record 43 in node 1 beginning at 512-byte sector 0x9040
parentID = 2
nodeName = touched.txt
# Catalog File Record
# Record 15 in node 19 beginning at 512-byte sector 0x90d0
type = file
file ID = 76230
flags = 0000000010000010
. File has a thread record in the catalog.
. File has date-added stored in Finder Info.
reserved1 = 0
createDate = Wed Dec 26 01:45:51 2012
contentModDate = Wed Dec 26 01:45:51 2012
attributeModDate = Wed Dec 26 01:45:51 2012
accessDate = Wed Dec 26 01:45:51 2012
backupDate = 0
# BSD Info
ownerID = 19236 (gjp22)
groupID = 20 (staff)
adminFlags = 00000000
ownerFlags = 00000000
fileMode = -rw-r--r--
linkCount = 1
textEncoding = 0
reserved2 = 0
# Finder Info
fdType = 0
fdCreator = 0`
fdFlags = 0000000000000000
fdLocation = (v = 0, h = 0)
opaque = 0
# Extended Finder Info
reserved1 = 0
date_added = Wed Dec 26 01:45:51 2012
extended_flags = 0000000000000000
reserved2 = 0
reserved3 = 0
# Data Fork
logicalSize = 0 bytes
# Resource Fork
logicalSize = 0 bytes
Заметки
Дата Добавлена
FndrExtendedDirInfo
и FndrExtendedFileInfo
- оба из которых включают date_added
- появляются в Apple с открытым исходным кодом для Mac OS X 10.7 (xnu-1699.22.73), но не 10.6.8.
Другие поля
Для полей, которые зарезервированы, я не знаю, что может быть использовано сейчас или в будущем.
Для OS X 10.8.2
http://www.opensource.apple.com/source/xnu/xnu-2050.18.24/bsd/hfs/hfs_format.h
… Описывает формат на диске для томов HFS и HFS Plus. ...