Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2008 03:31:41 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Pedro Giffuni <pfgshield-freebsd@yahoo.com>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: birthtime initialization
Message-ID:  <20080723032929.F18594@delplex.bde.org>
In-Reply-To: <984489.39243.qm@web32706.mail.mud.yahoo.com>
References:  <984489.39243.qm@web32706.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Jul 2008, Pedro Giffuni wrote:

> Tim has some patches I made to add support for birthtime in libarchive (only in extended pax format) as a LIBARCHIVE.creationtime attribute.
>
> Since birthtime is set by modifying mtime twice with utimes(2), the only criteria I used to determine if birthtime should be stored is if it was less than mtime. I hope something can be done to make that behavior consistent with UFS2 in all other filesystems.

Can't it check for st_birthtime.tv_sec being != 0 or -1?  The erroneous
default of 0 might interact badly with file systems written by buggy
versions of tar that set times to 0.

Bruce



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