From owner-freebsd-hackers@freebsd.org Sun May 27 18:42:24 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75669F7CDEB for ; Sun, 27 May 2018 18:42:24 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E65D4693EC for ; Sun, 27 May 2018 18:42:23 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w4RIgKiP056444; Sun, 27 May 2018 11:42:20 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w4RIgKDg056443; Sun, 27 May 2018 11:42:20 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201805271842.w4RIgKDg056443@pdx.rh.CN85.dnsmgr.net> Subject: Re: Indexing a dump file In-Reply-To: <182832e1-4968-4a83-02a3-84cfa9def675@m5p.com> To: George Mitchell Date: Sun, 27 May 2018 11:42:20 -0700 (PDT) CC: FreeBSD Hackers X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2018 18:42:24 -0000 > I'm drowning in old dump files and I would like to index them. > "restore -t" gives me a list of all the files in a dump, but I would > like to get the date of last modification and the size of each as well. > Is there something short of just doing a "restore" and "ls -lR" that > would get me the information? -- George > > P.S. A hash of each file would be icing on the cake, but I don't > expect I could do that without doing a full restore. A hacking of restore(8) sources would not be difficult to add some of this. Though you are gong to need to build the symtab as if you was doing a restore, you would not need to write the data to disk. -- Rod Grimes rgrimes@freebsd.org