Date: Tue, 24 Oct 2006 14:05:46 +0200 From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) To: fjoe@samodelkin.net Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, julian@elischer.org Subject: Re: Reliable hard links with mkisofs/ISO-9660/RR Message-ID: <453e019a.0bXjcrt8pIRVg4RY%Joerg.Schilling@fokus.fraunhofer.de> In-Reply-To: <20061023132204.GB73780@samodelkin.net> References: <45223d3d.5Il%2BWW9HwkAuGvSH%Joerg.Schilling@fokus.fraunhofer.de> <4522AB6D.9050309@elischer.org> <4522aec5.4ZbRSHkZMuJ7r3BT%Joerg.Schilling@fokus.fraunhofer.de> <20061023132204.GB73780@samodelkin.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Max Khon <fjoe@samodelkin.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?453e019a.0bXjcrt8pIRVg4RY%Joerg.Schilling>