From owner-cvs-src@FreeBSD.ORG Mon Dec 31 01:40:10 2007 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB23216A421; Mon, 31 Dec 2007 01:40:10 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7F37113C467; Mon, 31 Dec 2007 01:40:10 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: (from root@localhost) by kientzle.com (8.12.9/8.12.9) id lBV1Kkp3060915; Sun, 30 Dec 2007 17:20:46 -0800 (PST) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.209] (p54.kientzle.com [66.166.149.54]) by kientzle.com with SMTP; Sun, 30 Dec 2007 17:20:46 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <477843EE.2020703@freebsd.org> Date: Sun, 30 Dec 2007 17:20:46 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Simon L. Nielsen" References: <200712300458.lBU4wNOH038901@repoman.freebsd.org> <20071231001554.GB987@zaphod.nitro.dk> In-Reply-To: <20071231001554.GB987@zaphod.nitro.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libarchive Makefile archive.h.in archive_entry.c archive_entry.h archive_entry_link_resolver.c archive_entry_private.h archive_entry_strmode.c archive_platform.h archive_read.c archive_read_support_compression_none.c archive_read_support_format_all.c ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 01:40:10 -0000 Simon L. Nielsen wrote: > On 2007.12.30 04:58:23 +0000, Tim Kientzle wrote: > >> Log: >> Update libarchive to 2.4.10. This includes a number of improvements >> that I've been working on but put off committing until after the >> RELENG_7 branch, including: >> >> * New manpages: cpio.5 mtree.5 > > mtree(5) seems to be a general manual page, so wouldn't it make more > sense to have it in src/share/man/man5 or src/usr.sbin/mtree ? The latter does make more sense; I'll change this. (Since there's no history in it's current location, there's no point in a repo-copy; I'll just delete it from it's current location and add it under src/usr.bin/mtree.) >> * New read support: mtree format > > This sounds interesting but I can't really figure out what it > does... ? :) (and I couldn't find any mention in the updated manual > pages.) Still slightly experimental (and relies on mtree files having an initial signature, which our mtree program doesn't yet insert). This originated as a means for generating archives with user-specified metadata. (For example, create a tar archive with entries owned by root even if you're not running as root.) NetBSD has hacked their 'tar' program to do something similar; this implementation allows bsdtar's much more general archive-conversion capability to do the same thing. With this, bsdtar can read an mtree file and do any of the following: * "extract" the file to disk (recreate the disk heirarchy) tar -xf specification.mtree * "convert" the mtree spec to a tar or cpio archive (especially useful with a new mtree key I've introduced that allows specifying the contents of a file) tar -cf system.tgz -z --format=pax @specification.mtree There are particularly intriguing applications to packaging and installation: the former is essentially a "bulk install", the latter generates a tarball from the exact same spec for later installation with a simple tar extract. Tim Kientzle