btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

btrfs-progs: mkfs/rootdir: add hard link support

Open adam900710 opened this issue 1 year ago • 2 comments

With the recently reworked --rootdir support, although it solves several hard link related problems, it splits the hard links into new inodes.

And on each split, it shows a warning on each file with hardlinks.

Although the split behavior doesn't cause any data corruption, it can still be pretty noisy for rootfs creation, as there are a lot of distros storing timezone files as hardlinks.

This patchset adds back the hard link detection and creation, with enhanced handling to co-operate with --subvol option.

The details can be found in the first patch, with the new corner case introduced by --subvol option.

The second patch enhances the existing --rootdir and --subvol test case with extra corner cases like hard links, and hard links split by subvolume boundary.

adam900710 avatar Aug 15 '24 04:08 adam900710

Can you please rebase the branch? The diff is mixed with all the v6.10.1 changes, I can't do the review properly.

kdave avatar Aug 19 '24 22:08 kdave

Never mind, it was caused by my push of old devel, before the 6.10.1 merge.

kdave avatar Aug 19 '24 22:08 kdave