From owner-cvs-all@FreeBSD.ORG Fri Mar 25 07:36:00 2005 Return-Path: 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 E098716A4CE; Fri, 25 Mar 2005 07:36:00 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D3A243D49; Fri, 25 Mar 2005 07:36:00 +0000 (GMT) (envelope-from imp@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 j2P7a0xj022465; Fri, 25 Mar 2005 07:36:00 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2P7a0pC022460; Fri, 25 Mar 2005 07:36:00 GMT (envelope-from imp) Message-Id: <200503250736.j2P7a0pC022460@repoman.freebsd.org> From: Warner Losh Date: Fri, 25 Mar 2005 07:35:59 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/restore dirs.c restore.h tape.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 25 Mar 2005 07:36:01 -0000 imp 2005-03-25 07:35:59 UTC FreeBSD src repository Modified files: sbin/restore dirs.c restore.h tape.c Log: Restore the ability to read FreeBSD 1 tapes (and I think any net2 based tapes, but I'm not sure where NFS_MAGIC was introduced after 4.3). When support for the pre-4.4 format was removed (the ability to read 4.2 and 4.3 BSD tapes), the old format inode conversion was junked as well. However, FreeBSD 1 dump tapes use the NFS_MAGIC format, but have this inode format. Before, restore would fail complaining that '.' wasn't found and the root directory wasn't on this tape. Since the conversion from the not so old format is relatively trivial, restore the code to make that conversion. FreeBSD 1 dumps are once again readable. MFC After: a few days Revision Changes Path 1.29 +10 -0 src/sbin/restore/dirs.c 1.9 +3 -0 src/sbin/restore/restore.h 1.43 +11 -0 src/sbin/restore/tape.c