erofs-utils: add --hard-dereference option
authorPaul Meyer <katexochen0@gmail.com>
Thu, 12 Dec 2024 16:48:07 +0000 (17:48 +0100)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 13 Dec 2024 00:59:10 +0000 (08:59 +0800)
commit54e217b80509c193a087b69a5a52884389236926
treea5f68ec56a105452983a3307b6946084ff697b67
parent91e74ac65045a778bf7e23f418685c0b36779edd
erofs-utils: add --hard-dereference option

Add option --hard-dereference to dereference hardlinks when
creating an image. Instead of reusing the inode, hardlinks are added
as separate inodes. This is useful for reproducible builds, when the
rootfs is space-optimized using hardlinks on some machines, but not on
others.

Co-authored-by: Leonard Cohnen <leonard.cohnen@gmail.com>
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
Link: https://lore.kernel.org/r/20241212165550.58756-1-katexochen0@gmail.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
include/erofs/config.h
lib/inode.c
mkfs/main.c