[klibc] Re: INITRAMFS: allow no trailer

H. Peter Anvin hpa at zytor.com
Fri Dec 3 18:11:55 PST 2004


Milton Miller wrote:
> 
> hpa points out that you should be careful with the headers, use unique
> inode numbers and/or add a cpio header with just TRAILER!!! to reset
> the inode hash table to avoid unwanted hard links.  I just put this
> sequence as the last files loaded.
> 

Correction.  I just remembered we wrote the spec so that a file with a 
link count of 1 is not entered in the hash table and therefore is never 
hardlinked.  This should do what you need.  (This was obviously done for 
exactly this reason.)

	-hpa



More information about the klibc mailing list