From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 23 16:58:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CA8616A41C; Thu, 23 Jun 2005 16:58:13 +0000 (GMT) (envelope-from bsdcrank@squbes.com) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0902243D53; Thu, 23 Jun 2005 16:58:13 +0000 (GMT) (envelope-from bsdcrank@squbes.com) Received: from [192.168.177.29] ([151.205.168.18]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IIJ00DUXR4ZAUA0@vms040.mailsrvcs.net>; Thu, 23 Jun 2005 11:58:12 -0500 (CDT) Date: Thu, 23 Jun 2005 12:58:11 -0400 From: Gregg Cooper In-reply-to: <86mzphcc0z.fsf@xps.des.no> To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= Message-id: <42BAEA23.70802@squbes.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en References: <42BAC058.3040603@squbes.com> <42BAC1CB.30402@samsco.org> <86mzphcc0z.fsf@xps.des.no> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050524) Cc: freebsd-hackers@freebsd.org, Scott Long , marius@freebsd.org Subject: Re: Duplicate inodes in 5.4-RELEASE-i386-disc1.iso X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2005 16:58:13 -0000 Dag-Erling Smørgrav wrote: >Scott Long writes: > > >>Gregg Cooper wrote: >> >> >>>15005 -r--r--r-- 2 root wheel 0 May 8 03:05 dumpdates >>>15005 -r--r--r-- 2 root wheel 142 May 8 03:05 fbtab >>>83266 -r--r--r-- 2 root wheel 0 May 8 03:01 locale >>>83266 -r--r--r-- 2 root wheel 31 May 8 03:01 mm.tmac >>>83269 -r--r--r-- 2 root wheel 0 May 8 03:01 se_locale >>>83269 -r--r--r-- 2 root wheel 97 May 8 03:01 se_ms.cov >>>99056 -r--r--r-- 2 root wheel 0 May 8 03:05 utmp >>>99056 -r--r--r-- 2 root wheel 18425 May 8 03:04 Makefile.dist >>> >>> >>Maybe it's a bug in mkisofs? >> >> > >ISO 9660 filesystems donn't have inode numbers. The cd9660 code fakes >them based on the location of each file's contents. This model breaks >down for empty files, which have no contents and thus no meaningful >location. Apparently, mkisofs simply keeps track of the last extent >written and uses that for the location of the next file regardless of >whether it actually has any contents, so empty files get the same >inode number as the previous non-empty file. > >The attached patch will make mkisofs assign the lowest valid non-zero >address to all empty files. They will therefore appear to be hard >links to eachother, but not to random non-empty files. > >DES > > Scott: Thanks for the Makefile snippet. DES: So fast - thanks! You provided a solution in less time than I spent scratching my head ... marius: As port maintainer, can you shepherd this change into the cdrtools project? Gregg