From owner-freebsd-fs@FreeBSD.ORG Tue Oct 24 12:10:08 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5275F16A492; Tue, 24 Oct 2006 12:10:08 +0000 (UTC) (envelope-from schilling@fokus.fraunhofer.de) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1B2843DB2; Tue, 24 Oct 2006 12:09:06 +0000 (GMT) (envelope-from schilling@fokus.fraunhofer.de) Received: from burner.fokus.fraunhofer.de (burner [10.147.65.166]) by mailhub.fokus.fraunhofer.de (8.11.6p2/8.11.6) with ESMTP id k9OC7Ud14841; Tue, 24 Oct 2006 14:07:30 +0200 (MEST) Received: (from jes@localhost) by burner.fokus.fraunhofer.de (8.12.9+Sun/8.12.9/Submit) id k9OC5khE005162; Tue, 24 Oct 2006 14:05:46 +0200 (CEST) Date: Tue, 24 Oct 2006 14:05:46 +0200 From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) To: fjoe@samodelkin.net Message-ID: <453e019a.0bXjcrt8pIRVg4RY%Joerg.Schilling@fokus.fraunhofer.de> References: <45223d3d.5Il+WW9HwkAuGvSH%Joerg.Schilling@fokus.fraunhofer.de> <4522AB6D.9050309@elischer.org> <4522aec5.4ZbRSHkZMuJ7r3BT%Joerg.Schilling@fokus.fraunhofer.de> <20061023132204.GB73780@samodelkin.net> In-Reply-To: <20061023132204.GB73780@samodelkin.net> User-Agent: nail 11.22 3/20/05 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, julian@elischer.org Subject: Re: Reliable hard links with mkisofs/ISO-9660/RR X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 12:10:08 -0000 Max Khon wrote: > > FreeBSD currently seems to bascally implement the same fake inode algorithm > > as SunOS does since ~ 1989. > > > > I did extend mkisofs during the past days and started to extend hsfs from > > Solaris. Once I am ready, I could present the results in case there is someone > > who is willing to work on the FreeBSD filesystem module, I could explain what > > needs to be done. > > Please do. Mkisofs now supports correct link counts for files and directories and implements an inode number algorithm. If the sector that immediately follows the VD-sectors and (in case available the related UDF sectors) starts with "MKI " and if the last 3 bytes of this sector contain a checksum from the PVD, a new mkisofs that is in the right mode did create the image. In this case, the starting LBA numbers in the ISO-9660 directory entries are useful as inode numbers. If the SUS-RRIP "PX" entry has a size of 44 bytes, it contains the same number as RR inode number. If you switch to this new inode scheme, NFS exports are expeted to work no longer unless you change the NFS FID algorithm too. I implemented Solaris hsfs the following way: - if hsfs sees a non-inode aware filesystem, it uses inode number 16 for all zero sized files. The files are diistinguished internally from the LBA/off values for the Directory entry. - if hsfs sees a inode aware filesystem, it uses the numbers. - NFS FIDs use LBA/off + inode number. Jörg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily