From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 24 13:55:30 2006 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2D9216A423 for ; Fri, 24 Mar 2006 13:55:30 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C1EF43D45 for ; Fri, 24 Mar 2006 13:55:30 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FMmlE-000MOz-GW; Fri, 24 Mar 2006 13:55:28 +0000 Date: Fri, 24 Mar 2006 13:55:28 +0000 From: Ceri Davies To: hackers@FreeBSD.org Message-ID: <20060324135528.GA15948@submonkey.net> Mail-Followup-To: Ceri Davies , hackers@FreeBSD.org References: <20060324120618.GB17507@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20060324120618.GB17507@submonkey.net> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: Subject: Re: Exposing a file's creation time via find(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2006 13:55:30 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 24, 2006 at 12:06:18PM +0000, Ceri Davies wrote: >=20 > While perusing my Daemon book I noticed that it mentioned the existence > of the st_birthtime field in struct stat. I then also noticed that not > many utilities expose this: the Daemon mentions dump(8), restore(8) and > the only other one I could find was stat(1). >=20 > The attached patch adds st_birthtime related primaries to find(1), being > -Bmin, -Btime, -Bnewer et al. These let you use an inode's real > creation time in find primitives. I have chosen 'B' over 'b' to match > the format specifier from stat(1). It seems to do the right thing on UFS > 1, 2 and MSDOS file systems, but some more testing would be appreciated. Note that there is a line out of place in the manpage diff - this is corrected in a later version of the patch at http://people.FreeBSD.org/~ceri/find-Btime.diff Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEI/pQocfcwTS3JF8RAsEDAKCpWvhYLa3ebZ4PW0Go5HVcooowsQCeNYW9 io2yH0mtkPbz7hI+GqxAWBQ= =R6Mp -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--