Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2007 18:27:24 +0300
From:      Nikos Vassiliadis <nvass@teledomenet.gr>
To:        freebsd-stable@freebsd.org
Subject:   Re: When inode change time changes?
Message-ID:  <200706191827.25457.nvass@teledomenet.gr>
In-Reply-To: <003801c7b05c$cac2c3b0$0c00a8c0@Artem>
References:  <003801c7b05c$cac2c3b0$0c00a8c0@Artem>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 17 June 2007 00:24, Artem Kuchin wrote:
> Maybe someone can englighten me when
> inode change time changes? What must be done
> with file to change it (except writing to it)?

stat(2) would be very enlightening in this context.

> I tried chmoding - it does not affect inode time.

chmod works for me:
nik:1:~$ stat -f "%c" /tmp/test 
1182266005
nik:1:~$ chmod -rw /tmp/test 
nik:1:~$ stat -f "%c" /tmp/test 
1182266014

How do check the timestamps?
Do you use stat(1) or something else?

Nikos



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706191827.25457.nvass>