btrfs-progs/tests/mkfs-tests
David Sterba 1faaa874a1 btrfs-progs: ci: wait for loop devices before mount
Since a few days the CI started to fail randomly when there were loop
devices used in the tests. The mount fails because some device is
reported to be missing:

  $ losetup --show --find
  /dev/loop3
  ...

  $ mkfs ...
  ERROR: device scan failed on '/dev/loop3': No such file or directory
  ...

  $ mount
  mount: /home/runner/work/btrfs-progs/btrfs-progs/tests/mnt: wrong fs
  type, bad option, bad superblock on /dev/loop3, missing codepage or
  helper program, or other error.

  $ dmesg
  ...
  BTRFS error (device loop0): devid 3 uuid 11d9c345-9527-433e-a024-7102659fa0ee is missing
  BTRFS error (device loop0): failed to read the system array: -2
  BTRFS error (device loop0): open_ctree failed

This was reproducible in the "cli" tests, but also happened on a local
machine.

To fix that wait for all loop devices before mount, the command
'btrfs device ready' should block until that. The convenience helper
does that, for any standalone 'mount' used with loop devices this must
be done manually.

Signed-off-by: David Sterba <dsterba@suse.com>
2023-11-03 18:04:37 +01:00
..
001-basic-profiles btrfs-progs: ci: wait for loop devices before mount 2023-11-03 18:04:37 +01: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: add protection against running out of test suite 2023-04-25 16:59:41 +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: add protection against running out of test suite 2023-04-25 16:59:41 +02:00
014-rootdir-inline-extent btrfs-progs: tests: add protection against running out of test suite 2023-04-25 16:59:41 +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: add basic mkfs test for raid-stripe-tree 2023-10-17 19:33:59 +02:00
030-zoned-rst btrfs-progs: tests: add basic mkfs tests for zoned + rst 2023-10-17 19:33:59 +02:00