Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 21:21:13 +0100
From:      Emanuel Strobl <emanuel.strobl@gmx.net>
To:        Peter Jeremy <PeterJeremy@optushome.com.au>
Cc:        freebsd-current@freebsd.org
Subject:   Re: installworld with specified ctime possible?
Message-ID:  <200503252121.29069@harrymail>
In-Reply-To: <20050325200634.GE43123@cirb503493.alcatel.com.au>
References:  <200503251928.03969@harrymail> <20050325200634.GE43123@cirb503493.alcatel.com.au>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Am Freitag, 25. März 2005 21:06 schrieb Peter Jeremy:
> On Fri, 2005-Mar-25 19:27:51 +0100, Emanuel Strobl wrote:
> >Does anybody know a trick how I can have the files, installed by
> > installworld, have a specified ctime?
>
> Quick answer: you can't.
>
> ctime is the inode change time and is always updated by the UFS code to
> reflect the system time at which an inode change occurred.  The only way
> to control it is by setting the system clock - and that will have all
> sorts of other undesirable side-effects.

Of course, especially in jails the kernel time is no option.
Controling mtime was sufficient of course, I just mentioned ctime since I 
evaluate this one in my script.

But I fear also ctime can't be modified without rewriting the install 
routines.

Thanks,

-Harry

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCRHLJBylq0S4AzzwRAiTxAJ4wXUXl9EhI/IhL5D3waE0BYGakgACeIvdS
HPxcCf1rsHZs8qw+IM0xQSw=
=LD2f
-----END PGP SIGNATURE-----
help

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