btrfs-progs/tests/mkfs-tests
David Sterba 8b36a293f7 btrfs-progs: mkfs: print only first warning when --rootdir finds a hardlink
There's a report that newly added --rootdir print too many warnings for
hardlinks, which is maybe not that uncommon. We still want to let the
user know about that so print it just once and count how many were
found:

  $ mkfs.btrfs --rootdir ...
  WARNING: '/tmp/btrfs-progs-mkfs-rootdir-hardlinks.7RcdfR/rootdir/inside_link' has extra hardlinks, they will be converted into new inodes
  WARNING: 12 hardlinks were detected in /tmp/btrfs-progs-mkfs-rootdir-hardlinks.7RcdfR/rootdir, all converted to new inodes

Link: https://github.com/kdave/btrfs-progs/pull/872#issuecomment-2289096125
Signed-off-by: David Sterba <dsterba@suse.com>
2024-08-15 00:02:39 +02:00
..
001-basic-profiles btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
002-no-force-mixed-on-small-volume
003-mixed-with-wrong-nodesize
004-rootdir-keeps-size
005-long-device-name-for-ssd
006-partitioned-loopdev
007-mix-nodesize-sectorsize
008-sectorsize-nodesize-combination btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
009-special-files-for-rootdir
010-minimal-size
011-rootdir-create-file
012-rootdir-no-shrink
013-reserved-1M-for-single btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
014-rootdir-inline-extent btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
015-fstree-uuid-otime
016-rootdir-bad-symbolic-link
017-small-backing-size-thin-provision-device
018-multidevice-overflow
019-basic-checksums-mkfs
020-basic-checksums-mount
021-rfeatures-quota-rootdir
022-rootdir-size
023-free-space-tree
024-fst-bitmaps
025-zoned-parallel
026-extent-tree-to-bgt
027-rootdir-inode
028-block-group-tree
029-raid-stripe-tree btrfs-progs: tests: hide RST related mkfs tests behind experimental builds 2024-06-24 19:18:29 +02:00
030-zoned-rst btrfs-progs: tests: hide RST related mkfs tests behind experimental builds 2024-06-24 19:18:29 +02:00
031-zoned-bgt btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
032-zoned-reset btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
033-zoned-reject-rst btrfs-progs: mkfs-tests: ensure regular builds won't enable rst feature 2024-06-24 19:18:35 +02:00
034-rootdir-extra-hard-links btrfs-progs: mkfs: print only first warning when --rootdir finds a hardlink 2024-08-15 00:02:39 +02:00
035-rootdir-cross-mount btrfs-progs: tests: verify cross mount point behavior for rootdir 2024-08-14 23:58:38 +02:00