From owner-freebsd-fs@FreeBSD.ORG Tue Jul 22 17:31:45 2008 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F20B1065674 for ; Tue, 22 Jul 2008 17:31:45 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail01.syd.optusnet.com.au (mail01.syd.optusnet.com.au [211.29.132.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0A9C58FC14 for ; Tue, 22 Jul 2008 17:31:44 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c220-239-252-11.carlnfd3.nsw.optusnet.com.au (c220-239-252-11.carlnfd3.nsw.optusnet.com.au [220.239.252.11]) by mail01.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m6MHVfpJ012910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jul 2008 03:31:42 +1000 Date: Wed, 23 Jul 2008 03:31:41 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Pedro Giffuni In-Reply-To: <984489.39243.qm@web32706.mail.mud.yahoo.com> Message-ID: <20080723032929.F18594@delplex.bde.org> References: <984489.39243.qm@web32706.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@FreeBSD.org Subject: Re: birthtime initialization X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 17:31:45 -0000 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