词条 | MAC times |
释义 |
Modification time (mtime)A file's modification time describes when the content of the file most recently changed. Because most file systems do not compare data written to a file with what is already there, if a program overwrites part of a file with the same data as previously existed in that location, the modification time will be updated even though the contents did not technically change. Access time (atime)A file's access time identifies when the file was most recently opened for reading. Access times are usually updated even if only a small portion of a large file is examined. A running program can maintain a file as "open" for some time, so the time at which a file was opened may differ from the time data was most recently read from the file. Because some computer configurations are much faster at reading data than at writing it, updating access times after every read operation can be very expensive. Some systems mitigate this cost by storing access times at a coarser granularity than other times; by rounding access times only to the nearest hour or day, a file which is read repeatedly in a short time frame will only need its access time updated once.[4] In Windows, this is addressed by waiting for up to an hour to flush updated access dates to the disk.[5] Some systems also provide options to disable access time updating altogether. In Windows, starting with Vista, file access time updating is disabled by default.[6] Change time and creation time (ctime)Unix and Windows file systems interpret 'ctime' differently:
This difference in usage can lead to incorrect presentation of time metadata when a file created on a Windows system is accessed on a Unix system and vice versa.{{Citation needed|date=September 2007}} Most Unix file systems don't store the creation time, although some, such as HFS+, ZFS, and UFS2 do. NTFS stores both the creation time and the change time. The semantics of creation times is the source of some controversy. One view is that creation times should refer to the actual content of a file: e.g. for a digital photo the creation time would note when the photo was taken or first stored on a computer. A different approach is for creation times to stand for when the file system object itself was created, e.g. when the photo file was last restored from a backup or moved from one disk to another. Metadata issuesAs with all file system metadata, user expectations about MAC times can be violated by programs which are not metadata-aware. Some file-copying utilities will explicitly set MAC times of the new copy to match those of the original file, while programs that simply create a new file, read the contents of the original, and write that data into the new copy, will produce new files whose times do not match those of the original. Some programs, in an attempt to avoid losing data if a write operation is interrupted, avoid modifying existing files. Instead, the updated data is written to a new file, and the new file is moved to overwrite the original. This practice loses the original file metadata unless the program explicitly copies the metadata from the original file. Windows is not affected by this due to a workaround feature called File System Tunneling.[7] See also
References1. ^{{cite book |last=Luque |first=Mark E. |chapter=Logical Level Analyses of Linux Systems |pages=182–183 |editor-last=Casey |editor-first=E. |title=Handbook of Computer Crime Investigation: Forensic Tools and Technology |location=London |publisher=Academic Press |year=2002 |isbn=0-12-163103-6 }} 2. ^{{cite book |last=Sheldon |chapter=Forensic Analyses of Windows Systems |pages=134–135 |editor-last=Casey |editor-first=E. |title=Handbook of Computer Crime Investigation: Forensic Tools and Technology |location=London |publisher=Academic Press |year=2002 |isbn=0-12-163103-6 }} 3. ^{{cite web |url=http://drdobbs.com/cpp/184404275 |title=What Are MACtimes? |author=Dan Farmer |publisher=Dr Dobb's Journal |date=October 1, 2000 }} 4. ^ {{cite web | url = http://msdn.microsoft.com/en-us/library/ms724290.aspx | title = File Times | publisher = Microsoft MSDN Library }} 5. ^ {{cite web | url = https://msdn.microsoft.com/en-us/library/ms724290.aspx | title = File Times | publisher = Microsoft MSDN Library }} 6. ^ {{cite web | url = http://blogs.technet.com/b/filecab/archive/2006/11/07/disabling-last-access-time-in-windows-vista-to-improve-ntfs-performance.aspx | title = Disabling Last Access Time in Windows Vista to improve NTFS performance | publisher = The Storage Team at Microsoft }} 7. ^ {{cite web | url = https://support.microsoft.com/en-us/kb/172190 | title = Windows NT Contains File System Tunneling Capabilities | publisher = Microsoft Support }} External links
2 : Computer file systems|Computer forensics |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。