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 btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
003-mixed-with-wrong-nodesize btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
004-rootdir-keeps-size btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
005-long-device-name-for-ssd btrfs-progs: tests: mkfs/005: use udevadm settle to avoid false alerts 2023-08-23 19:36:31 +02:00
006-partitioned-loopdev btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
007-mix-nodesize-sectorsize btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
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 btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
010-minimal-size btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
011-rootdir-create-file btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
012-rootdir-no-shrink btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
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 btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
016-rootdir-bad-symbolic-link btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
017-small-backing-size-thin-provision-device btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
018-multidevice-overflow btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
019-basic-checksums-mkfs btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
020-basic-checksums-mount btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
021-rfeatures-quota-rootdir btrfs-progs: tests: mkfs/021: update to use -O instead of deprecated -R 2023-05-26 18:02:27 +02:00
022-rootdir-size btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
023-free-space-tree btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
024-fst-bitmaps btrfs-progs: tests: fix description of mkfs/024-fst-bitmaps 2023-10-17 19:33:59 +02:00
025-zoned-parallel btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
026-extent-tree-to-bgt btrfs-progs: tune: rename bgt conversion options 2023-04-27 14:23:52 +02:00
027-rootdir-inode btrfs-progs: ci: wait for loop devices before mount 2023-11-03 18:04:37 +01:00
028-block-group-tree btrfs-progs: tests: add basic mkfs test for block-group-tree 2023-10-17 19:33:59 +02:00
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