From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 23 21:03:28 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 CA6C916A41C for ; Thu, 23 Jun 2005 21:03:28 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 399BB43D4C for ; Thu, 23 Jun 2005 21:03:28 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id j5NL3NAX029538; Thu, 23 Jun 2005 23:03:24 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id j5NL3D9R029537; Thu, 23 Jun 2005 23:03:13 +0200 (CEST) (envelope-from marius) Date: Thu, 23 Jun 2005 23:03:13 +0200 From: Marius Strobl To: Gregg Cooper Message-ID: <20050623230313.D80563@newtrinity.zeist.de> References: <42BAC058.3040603@squbes.com> <42BAC1CB.30402@samsco.org> <86mzphcc0z.fsf@xps.des.no> <42BAEA23.70802@squbes.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <42BAEA23.70802@squbes.com>; from bsdcrank@squbes.com on Thu, Jun 23, 2005 at 12:58:11PM -0400 X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-4; AVE: 6.31.0.7; VDF: 6.31.0.96; host: newtrinity.zeist.de) Cc: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , Scott Long , freebsd-hackers@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 21:03:28 -0000 On Thu, Jun 23, 2005 at 12:58:11PM -0400, Gregg Cooper wrote: > 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? > Please run it through the author of cdrtools first (Joerg Schilling ). If he thinks it's the right thing to do I'm happy to add it to the port. Marius