From owner-freebsd-hackers@freebsd.org Wed Dec 9 09:43:50 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0811C9D4CE1 for ; Wed, 9 Dec 2015 09:43:50 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F99A1DBD for ; Wed, 9 Dec 2015 09:43:49 +0000 (UTC) (envelope-from joerg@britannica.bec.de) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQuEfXeSt/nWoxdY2dvuAIbsw5PvjGQjhWhuW+2PsshoPXoZabJAznZsNufRmXw== X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (p20030057E21B0F007466C19E73AFB0E3.dip0.t-ipconnect.de [IPv6:2003:57:e21b:f00:7466:c19e:73af:b0e3]) by smtp.strato.de (RZmta 37.14 AUTH) with ESMTPSA id f02a06rB99hi6Io (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Wed, 9 Dec 2015 10:43:44 +0100 (CET) Date: Wed, 9 Dec 2015 10:43:42 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Subject: Re: How to get the deterministic result for FreeBSD tar(1)? Message-ID: <20151209094342.GA31098@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <5666B828.5000306@rawbw.com> <5667C93C.60307@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5667C93C.60307@rawbw.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2015 09:43:50 -0000 On Tue, Dec 08, 2015 at 10:25:00PM -0800, Yuri wrote: > On 12/08/2015 02:59, Yuri wrote: > >So I have two questions: > >1. How do I actually achieve the output determinism for tar(1)? > >2. Is there an agreement that this is a bug that too long or non-ASCII > >path name triggers the leakage of ctime into a tar file? > > Answering to myself: turns out this is a major bug in libarchive, making > tar(1) in general unable to produce the deterministic output. As you have been told, there are mechanisms like mtree that can be used to explicitly control data. As such, please keep a sense of proportion -- it's hardly a major bug. Joerg