From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 15:37:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47BA5106564A for ; Thu, 8 Jul 2010 15:37:04 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 0397F8FC0A for ; Thu, 8 Jul 2010 15:37:03 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o68Fb3M3044249; Thu, 8 Jul 2010 09:37:03 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o68Fb330044246; Thu, 8 Jul 2010 09:37:03 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 8 Jul 2010 09:37:03 -0600 (MDT) From: Warren Block To: Anonymous In-Reply-To: <86wrt6m4f6.fsf@gmail.com> Message-ID: References: <86y6dmo4gh.fsf@gmail.com> <86wrt6m4f6.fsf@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.5 (wonkity.com [127.0.0.1]); Thu, 08 Jul 2010 09:37:03 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: livefs hard links X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2010 15:37:04 -0000 On Thu, 8 Jul 2010, Anonymous wrote: >> But the mounted ISO filesystem doesn't show hard links as hard links: >> >> # ls -li /mnt/rescue >> 416796 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 [ >> 399564 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atacontrol >> 399690 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 atmconfig >> 399816 -r-xr-xr-x 414 root wheel 4367520 Jun 9 14:49 badsect >> ... > > 414 is the number of hardlinks. Yes, but I was (poorly) pointing out the differing inode numbers. > You can as well try to use iso9660 reader in libarchive, e.g. > > $ bsdtar xvf /dev/cd0 --include rescue/\* > $ bsdtar xvf /path/to/blah.iso --include rescue/\* Much better! bsdtar recreates the hard links. It has a problem with only one directory on the ISO: # bsdtar xpf /tmp/FreeBSD-8.1-PRERELEASE-201006-i386-livefs.iso -C /tmp/freebsd/ bsdtar: Ignoring out-of-order file @340a6980 (usr/include/c++/4.2/ext/pb_ds/detail/basic_tree_policy) 4876288 < 5138432 bsdtar: Ignoring out-of-order file @340a6980 (usr/include/c++/4.2/ext/pb_ds/detail/basic_tree_policy) 4876288 < 5138432 bsdtar: Ignoring out-of-order file @340a6980 (usr/include/c++/4.2/ext/pb_ds/detail/basic_tree_policy) 4876288 < 5138432 bsdtar: Ignoring out-of-order file @340a6a80 (usr/include/c++/4.2/ext/pb_ds/detail/bin_search_tree_) 4878336 < 5138432 bsdtar: Ignoring out-of-order file @340a6b00 (usr/include/c++/4.2/ext/pb_ds/detail/binary_heap_) 4880384 < 5138432 bsdtar: Ignoring out-of-order file @340a6b80 (usr/include/c++/4.2/ext/pb_ds/detail/binomial_heap_) 4882432 < 5138432 ... Hard to tell if that's the ISO or a bug in libarchive. Thanks!