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
003-mixed-with-wrong-nodesize
004-rootdir-keeps-size
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
007-mix-nodesize-sectorsize
008-sectorsize-nodesize-combination
009-special-files-for-rootdir
010-minimal-size
011-rootdir-create-file
012-rootdir-no-shrink
013-reserved-1M-for-single
014-rootdir-inline-extent
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 btrfs-progs: tests: mkfs/021: update to use -O instead of deprecated -R 2023-05-26 18:02:27 +02:00
022-rootdir-size
023-free-space-tree
024-fst-bitmaps btrfs-progs: tests: fix description of mkfs/024-fst-bitmaps 2023-10-17 19:33:59 +02:00
025-zoned-parallel
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