Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!think!ames!haven!ncifcrf!nlm-mcs!adm!xadmx!stanonik@nprdc.arpa From: stanonik@nprdc.arpa (Ron Stanonik) Newsgroups: comp.unix.wizards Subject: vi and file ctime Message-ID: <17247@adm.ARPA> Date: 4 Oct 88 20:13:12 GMT Sender: news@adm.ARPA Lines: 17 We're running 4.3bsd on a vax 780. I just noticed that vi'ing a file changes the ctime of the file . . . even if the file isn't modified and even if the file isn't writable. Digging around I found that vi fsync's the file, and fsync seems to be the culprit. fsync results (in the kernel) in a call to syncip, which sets the ICHG bit in the inode's i_flag and then calls iupdat, causing the ctime to be set. Any reason not to remove the line setting the ICHG bit in syncip? Phrased another way, any good reason for fsync setting the ctime? Thanks, Ron Stanonik stanonik@nprdc.arpa