linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: mkfs/rootdir: add hard link support
@ 2024-08-15  4:38 Qu Wenruo
  2024-08-15  4:38 ` [PATCH 1/2] " Qu Wenruo
  2024-08-15  4:38 ` [PATCH 2/2] btrfs-progs: mkfs-tests: add hardlink related tests for --subvol Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2024-08-15  4:38 UTC (permalink / raw)
  To: linux-btrfs

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.

Qu Wenruo (2):
  btrfs-progs: mkfs/rootdir: add hard link support
  btrfs-progs: mkfs-tests: add hardlink related tests for --subvol

 Documentation/mkfs.btrfs.rst                |  13 ++
 mkfs/rootdir.c                              | 196 +++++++++++++++++---
 tests/mkfs-tests/036-rootdir-subvol/test.sh |  78 ++++++--
 3 files changed, 244 insertions(+), 43 deletions(-)

--
2.46.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-15  4:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15  4:38 [PATCH 0/2] btrfs-progs: mkfs/rootdir: add hard link support Qu Wenruo
2024-08-15  4:38 ` [PATCH 1/2] " Qu Wenruo
2024-08-15  4:38 ` [PATCH 2/2] btrfs-progs: mkfs-tests: add hardlink related tests for --subvol Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).