From owner-cvs-all@FreeBSD.ORG Tue Jan 17 03:40:44 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2685E16A42F; Tue, 17 Jan 2006 03:40:43 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E221E43D49; Tue, 17 Jan 2006 03:40:42 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0H3egrA051872; Tue, 17 Jan 2006 03:40:42 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0H3eg20051871; Tue, 17 Jan 2006 03:40:42 GMT (envelope-from kientzle) Message-Id: <200601170340.k0H3eg20051871@repoman.freebsd.org> From: Tim Kientzle Date: Tue, 17 Jan 2006 03:40:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive Makefile archive.h.in archive_read_support_format_tp.c libarchive-formats.5 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 03:40:44 -0000 kientzle 2006-01-17 03:40:42 UTC FreeBSD src repository Modified files: lib/libarchive Makefile archive.h.in libarchive-formats.5 Added files: lib/libarchive archive_read_support_format_tp.c Log: Add support for "tp" format. tp was the standard system archiver for Fourth Edition through Sixth Edition Unix; it was replaced by tar in Seventh Edition. (First Edition through Third Edition used "tap.") Unfortunately, tp was not so very standard; there were a few different variants. The code here attempts to support what I believe were the most common variants. tp support is not yet enabled by archive_read_support_format_all(), as I'm not yet entirely comfortable with the detection heuristics. People interested in experimenting can add archive_read_support_format_tp() just after any calls to archive_read_support_format_all() in bsdtar to see how well this works. TODO: tp format is roughly similar in structure to dump/restore archive formats used by many systems. It should be possible to generalize this code to handle many dump/restore variants. Format detection heuristics are going to be rough, though. Thanks to: Warren Toomey, whose very basic tp extraction programs and documentation made this possible. Revision Changes Path 1.43 +2 -1 src/lib/libarchive/Makefile 1.27 +1 -0 src/lib/libarchive/archive.h.in 1.1 +618 -0 src/lib/libarchive/archive_read_support_format_tp.c (new) 1.10 +10 -0 src/lib/libarchive/libarchive-formats.5