From owner-freebsd-current@FreeBSD.ORG Mon Jun 20 09:25:46 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0A1316A41C; Mon, 20 Jun 2005 09:25:46 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8299D43D55; Mon, 20 Jun 2005 09:25:46 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.248.223) by smtp01.syd.iprimus.net.au (7.2.060.1) id 42A0AD7E00528CF1; Mon, 20 Jun 2005 19:25:44 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id DF7A6438C; Mon, 20 Jun 2005 19:25:43 +1000 (EST) Date: Mon, 20 Jun 2005 19:25:43 +1000 From: Tim Robbins To: Tim Kientzle Message-ID: <20050620092543.GA54301@cat.robbins.dropbear.id.au> References: <20050617214658.GA41804@troutmask.apl.washington.edu> <58826.1119044951@critter.freebsd.dk> <20050617220222.GA42080@troutmask.apl.washington.edu> <20050617220653.GA114@saltmine.radix.net> <20050617221353.GA48584@troutmask.apl.washington.edu> <20050618061603.GM50157@cirb503493.alcatel.com.au> <20050619033904.GB3061@dragon.NUXI.org> <20050619070640.GQ50157@cirb503493.alcatel.com.au> <42B5C0BC.40904@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42B5C0BC.40904@freebsd.org> User-Agent: Mutt/1.4.1i Cc: freebsd-current@freebsd.org Subject: cpio/pax using libarchive? (was Re: Replace /rescue/vi with mined(1) from DragonFlyBSD) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 09:25:46 -0000 On Sun, Jun 19, 2005 at 12:00:12PM -0700, Tim Kientzle wrote: > Peter Jeremy wrote: > >On Sat, 2005-Jun-18 20:39:04 -0700, David O'Brien wrote: > >>On Sat, Jun 18, 2005 at 04:16:04PM +1000, Peter Jeremy wrote: > >> > >>>If you're looking for ways to save space in /rescue, there are other > >>>low-hanging fruit before you start moving to yet another editor: > >> > >>>- pax (when the new libarchive tar is available) > >> > >>Pax does more than just tar archives. Can libarchive'ed tar handle cpio > >>archives? > > > >According to tar(1) and libarchive-formats(3), yes it read anything that > >pax can. (It can't write cpio but I don't see that as a requirement in > >/rescue). > > Yes, it can write cpio. (Posix octet-oriented cpio format, also called > 'odc cpio' Other variants are easy to add if there's demand.) > > Is that not in the manpages? I'll add it. This is a bit off topic, but is there a good reason (other than lack of time) that cpio and pax could not be rewritten to use libarchive? Doing that would win us at least (a) a pax that correctly extracts GNU tar archives, and (b) a non-GPL cpio implementation. For the sake of completeness, it may also make sense to make shar either a C program that calls into libarchive or a wrapper around tar -Wformat=shar, but this doesn't have much practical value. Tim