Re: INITRAMFS: allow no trailer

From: H. Peter Anvin
Date: Fri Dec 03 2004 - 21:14:00 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/