]> err.no Git - linux-2.6/commit
[PATCH] usr/gen_init_cpio.c: support for hard links
authorLuciano Rocha <strange@nsk.no-ip.org>
Sat, 10 Feb 2007 09:44:45 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:25 +0000 (10:51 -0800)
commit24fa50961451b7b21081e4d16836952b17eb5fb3
treed40f2474ffd9046f0978bc5132a9ff4ef3140c00
parent67d38229dfa64cf9a75f83746dde345f47bbd8dc
[PATCH] usr/gen_init_cpio.c: support for hard links

Extend usr/gen_init_cpio.c "file" entry, adding support for hard links.

Previous format:
file <name> <location> <mode> <uid> <gid>

New format:
file <name> <location> <mode> <uid> <gid> [<hard links>]

The hard links specification is optional, keeping the previous
behaviour.

All hard links are defined sequentially in the resulting cpio and the
file data is present only in the last link. This is the behaviour of
GNU's cpio and is supported by the kernel initramfs extractor.

Signed-off-by: Luciano Rocha <strange@nsk.no-ip.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
usr/gen_init_cpio.c