tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Irene A. Shilikhina" <irene@alpha.iae.nsk.su>
Subject: Can fsck change ctime of an inode?
Date: Mon, 10 Feb 2003 17:48:14 +0600 (NSK)	[thread overview]
Message-ID: <Pine.OSF.3.91.1030210163958.7917A-100000@alpha.iae.nsk.su> (raw)


I suddenly discovered that old directories (older than 5 days) in 
/var/adm/syslog.dated remained where they were. I made sure that the 
crontab was submitted and it contained an appropriate line:

40 4 * * * find /var/adm/syslog.dated -depth -type d -ctime +5 -exec rm 
-rf {} \;

Then I ran 'find /var/adm/syslog.dated -type d -ctime +5' by hand and,
much to my surprise, the output was empty. But 'mtime' instead of 'ctime' 
gave what I expected. At this point it occured to me that this server had 
experienced crash (with panic 'kernel memory fault'). It happened 9 days 
ago. 

I removed them anyhow, and 'find' with -ctime +1, +2, +3 , +4 gives the 
right result.

Is it possible that fsck after the crash 'cured' these directories so that
ctime in their inodes changed? At boot time my eye had not enough time to
catch all the messages on the screen. 

Thanks,
Irene

*************************************************************************
*                                                                       *
*   Irene A. Shilikhina                 e-mail: irene@alpha.iae.nsk.su  *
*   System administrator,                                               *
*   Institute of Automation & Electrometry,                             *
*   Siberian Branch of Russian Academy of Sciences,                     *
*   Novosibirsk, Russia                                                 *
*                      http://www.iae.nsk.su/~irene                     *
*************************************************************************
*                                                                       *
*             The road to hell is paved with good intentions.           *
*                                                                       *
*************************************************************************



             reply	other threads:[~2003-02-10 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-10 11:48 Irene A. Shilikhina [this message]
2003-02-11  5:10 ` [NO SUMMARY] Can fsck change ctime of an inode? Irene A. Shilikhina
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox