From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076340321274.tru64-unix-managers.marc@archive.invalid> From: "LAURA GRABINSKI" Date: Tue, 01 Oct 1996 11:49:28 +0000 To: tru64-unix-managers Subject: SUMMARY: Inode vs file modification dates X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076340321274 Thank you to lesc@icr.hcnet.usp.br Eric Bennett Pirie Hart ajackson@iii.com (Anthony Jackson) Charlie Joyner Michael Matthews Hans Ranke Paul A Sand Bob Sloane Summary: Think of the inode as the file pointer. The inode contains all the information about the file (# of links, owner, mode, permissions, dates, ...). Things can change that which have little or nothing to do with the data in the file. >From the manual entry for stat(2), st_atime The time when file data was last accessed. This is changed by the system calls mknod(2), utimes(2), and read(2). For efficiency, st_atime is not set when a directory is searched. st_mtime The time when data was last modified. It is not set by changes of owner, group, link count, or mode. It is changed by the system calls mknod(2), utimes(2), and write(2). st_ctime The time when file status was last changed. It is set by writing and changing the i-node. It can be changed by the following system calls: chmod(2), chown(2), link(2), mknod(2), unlink(2), utimes(2), and write(2). Thus, changing file permissions or file owner or links to the file can cause your dates to differ. ------------------------------ Laura Grabinski, Network Administrator Aquinas College, 1607 Robinson RD SE, Grand Rapids MI 49506 USA grabilau@aquinas.edu, 616-459-8281, http://www.aquinas.edu