Re: filesystem timestamps and their usage

看板FB_chat作者時間18年前 (2007/08/20 17:54), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/6 (看更多)
On 2007-08-19 17:37, deeptech71@gmail.com wrote: > Let's talk about file system timestamps. What kind of timestamps are > there currently, and what are they used for? (or what new timestamps > would be needed/beneficial, or whatever.) > > Currently I can think of only two: > 1. data_time: The last time the file was written to. > 2. file_time: The last time the file was moved or written to. > > [snip discussion about fictitious timestamp values] It would be more interesting, educating and useful to discuss the usefulness of the current 'ctime', 'mtime' and 'atime' attributes implemented by most UNIX file systems (as opposed to, say, a discussion of the usefulness and merits of a pair of imaginary timestamp attributes). Try searching for 'ctime', 'mtime' and 'atime' in the source tree of FreeBSD. The most interesting place (but the most 'technical' too) is, naturally, the implementation of the UFS file system itself: /usr/src/sys/ufs/ufs/dinode.h If you go through this header file, looking for 'time', you will see many useful bits and pieces of information. - Giorgos _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #16oMJO00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #16oMJO00 (FB_chat)