On Fri, Jan 15, 2010 at 08:06:54PM -0800, Carl Miller wrote:
cramfs takes a shortcut with device nodes, and assigns them all inode 1.

I presume it also assigns nlinks == 1?

When using cpio to copy files out of a cramfs image, cpio turns the second
and all subsequent copied device nodes into hard links to the first copied
out device node, based on them all having the same st_dev and st_ino.

Another possible solution:  When checking for hard links
during copy-out, do not generate hardlink entries if
nlinks < 2.

Tim


Reply via email to