From b16616ef092e8cd97674aac3380c5d7c600d7c61 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 19 Dec 2019 16:31:39 +0100 Subject: Add hard link support to gensquashfs and tar2sqfs In libtar, set a special flag if the header is actually a hard link. In tar2sqfs, create a hard link node and skip the rest for hard links. Also refues to set the root attributes from a hard link, it may refere to a node that we have missed earlier, there is nothing else that we can do here. In fstree_from_file, add a "link" command for adding hard links. Signed-off-by: David Oberhollenzer --- doc/gensquashfs.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/gensquashfs.1 b/doc/gensquashfs.1 index 04dd968..0de39bf 100644 --- a/doc/gensquashfs.1 +++ b/doc/gensquashfs.1 @@ -105,6 +105,7 @@ file [] dir nod slink +link pipe sock .fi @@ -131,7 +132,7 @@ Optional location of the input file. Can be specified relative to either the description file or the pack directory. If omitted, the image path is used as a relative path. T} -;Symlink target. +;Symlink or hardlink target. ;Mode/permissions of the entry. ;Numeric user id. ;Numeric group id. -- cgit v1.2.3