From owner-freebsd-current@FreeBSD.ORG Fri Jul 24 19:14:28 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 52B1810656D9; Fri, 24 Jul 2009 19:14:27 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Tim Kientzle Date: Fri, 24 Jul 2009 15:14:16 -0400 User-Agent: KMail/1.6.2 References: <4A615602.4090000@freebsd.org> <200907231903.46474.jkim@FreeBSD.org> <4A694DBB.8080800@freebsd.org> In-Reply-To: <4A694DBB.8080800@freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200907241514.18806.jkim@FreeBSD.org> Cc: freebsd-current@FreeBSD.org Subject: Re: Joliet and release ISOs? 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: Fri, 24 Jul 2009 19:14:36 -0000 On Friday 24 July 2009 01:59 am, Tim Kientzle wrote: > Jung-uk Kim wrote: > > The "--options=!joliet" trick didn't work for me: > > > > # uname -mrs > > FreeBSD 8.0-BETA2 amd64 > > # tar -x --options=!joliet -p -f ../8.0-BETA2-amd64-livefs.iso > > # cd rescue > > # ls -il > > total 4204 > > 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 17:09 [ > > 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 17:09 > > atacontrol 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 > > 17:09 atmconfig 3326283 -r-xr-xr-x 131 root wheel 4485472 7 > > 15 17:09 badsect ... > > 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 17:09 whoami > > 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 17:09 zcat > > 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 17:09 zfs > > 3326283 -r-xr-xr-x 131 root wheel 4485472 7 15 17:09 zpool > > # file atacontrol > > atacontrol: data > > # hexdump atacontrol > > 0000000 0000 0000 0000 0000 0000 0000 0000 0000 > > * > > 0447160 > > Try the attached patch; I believe this corrects the > reading of hardlinks from iso9660 images. Thanks, that did it! Still, there is one minor annoyance: %ls -l test total 0 lrwxr-xr-x 1 jkim staff 1 7 24 14:54 link1 -> / lrwxr-xr-x 1 jkim staff 2 7 24 14:55 link2 -> // lrwxr-xr-x 1 jkim staff 2 7 24 14:55 link3 -> /. lrwxr-xr-x 1 jkim staff 2 7 24 14:55 link4 -> ./ lrwxr-xr-x 1 jkim staff 2 7 24 14:55 link5 -> .. lrwxr-xr-x 1 jkim staff 4 7 24 14:56 link6 -> /tmp lrwxr-xr-x 1 jkim staff 5 7 24 14:56 link7 -> //tmp lrwxr-xr-x 1 jkim staff 4 7 24 14:56 link8 -> tmp/ lrwxr-xr-x 1 jkim staff 5 7 24 14:56 link9 -> /tmp/ %sh /usr/src/release/amd64/mkisoimages.sh test test.iso test Total translation table size: 0 Total rockridge attributes bytes: 1045 Total directory bytes: 0 Path table size(bytes): 10 Max brk space used 0 181 extents written (0 MB) %tar -t --options=\!joliet -v -f test.iso drwx------ 0 0 0 2048 7 24 14:56 . lr-xr-xr-x 1 0 0 0 7 24 14:56 link9 -> //tmp/ lr-xr-xr-x 1 0 0 0 7 24 14:56 link8 -> tmp/ lr-xr-xr-x 1 0 0 0 7 24 14:56 link7 -> ///tmp lr-xr-xr-x 1 0 0 0 7 24 14:56 link6 -> //tmp lr-xr-xr-x 1 0 0 0 7 24 14:55 link5 -> .. lr-xr-xr-x 1 0 0 0 7 24 14:55 link4 -> ./ lr-xr-xr-x 1 0 0 0 7 24 14:55 link3 -> //. lr-xr-xr-x 1 0 0 0 7 24 14:55 link2 -> /// lr-xr-xr-x 1 0 0 0 7 24 14:54 link1 -> / Note there is an additional `/' when the link has a leading `/' (but not just `/'), i.e., `//' => `///', `/.' => `//.', `/tmp' => `//tmp', `//tmp' => `///tmp'. For FreeBSD CD-ROMs, `stand -> /rescue' becomes `stand -> //rescue', etc. Can you take a look at it, too? Thanks a lot! Jung-uk Kim