* Q: When do files in /proc change their times?
@ 2012-04-16 8:22 Ulrich Windl
2012-04-16 13:13 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Windl @ 2012-04-16 8:22 UTC (permalink / raw)
To: linux-kernel
Hello!
I have a simple question: When do files in /proc show changed modification times?
Specifically: When is "/proc/sys/kernel/random/boot_id" expected to change ist time?
I found out that usually the "file" doesn't change ist modification times, so I expected the modification times to change when the content changes. Obviously a wrong assumption: No reboot, but the file date changed.
According to syslog there was nothing special, but I did install some software packages (SLES11 SP1 (2.6.32.54-0.3-xen), no kernel) some seconds before that.
Maybe some kind soul could answer and CC: me as I'm not subscribed to the kernel list.
Regards,
Ulrich Windl
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Q: When do files in /proc change their times?
2012-04-16 8:22 Q: When do files in /proc change their times? Ulrich Windl
@ 2012-04-16 13:13 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2012-04-16 13:13 UTC (permalink / raw)
To: Ulrich Windl; +Cc: linux-kernel
"Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> writes:
> I have a simple question: When do files in /proc show changed modification
> times?
Whenever the inode is dropped from the inode cache and then recreated.
The proc fs always uses the current time to set the inode times.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-16 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 8:22 Q: When do files in /proc change their times? Ulrich Windl
2012-04-16 13:13 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox