btrfs-progs/tests/fsck-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-bad-file-extent-bytenr
002-bad-transid
003-shift-offsets
004-no-dir-index
005-bad-item-offset
006-bad-root-items
007-bad-offset-snapshots
008-bad-dir-index-name
009-no-dir-item-or-index
010-no-rootdir-inode-item
011-no-inode-item
012-leaf-corruption
013-extent-tree-rebuild
014-no-extent-info
016-wrong-inode-nbytes
017-missing-all-file-extent
018-leaf-crossing-stripes
019-non-skinny-false-alert
020-extent-ref-cases
021-partially-dropped-snapshot-case
022-qgroup-rescan-halfway
023-qgroup-stack-overflow
024-clear-space-cache btrfs-progs: tests: fix fsck/024 to work with free-space-tree 2021-10-06 16:49:25 +02:00
025-file-extents
026-bad-dir-item-name
027-bad-extent-inline-ref-type
028-unaligned-super-dev-sizes
029-valid-orphan-item
030-reflinked-prealloc-extents
031-metadatadump-check-data-csum btrfs-progs: tests: use _mktemp_local for temporary files 2022-10-11 09:06:13 +02:00
032-corrupted-qgroup
033-lowmem-collission-dir-items
034-bad-inode-flags
035-inline-bad-ram-bytes
036-bad-dev-extents
036-rescan-not-kicked-in
037-freespacetree-repair
038-missing-one-file-extent
039-bad-inode-mode
040-compressed-nodatasum
041-invalid-root-generation
042-half-dropped-inode btrfs-progs: fix a bunch of typos 2022-02-01 18:40:53 +01:00
043-bad-inode-generation
044-invalid-extent-item-generation
045-overlap-csum-item
046-ino-cache-clean
047-dev-bytes-used
049-dir-hard-link
050-invalid-block-group-used btrfs-progs: tests: add image with a corrupt block group item 2021-08-25 15:38:54 +02:00
051-invalid-super-bytes-used btrfs-progs: tests: add image with an invalid super bytes_used 2021-08-25 15:43:13 +02:00
052-init-csum-tree btrfs-progs: ci: wait for loop devices before mount 2023-11-03 18:04:37 +01:00
053-bad-metadata-level btrfs-progs: tests/fsck: add test image with invalid metadata backref level 2022-02-01 18:42:02 +01:00
054-orphan-directory btrfs-progs: tests: add a test to check orphaned directories 2022-03-08 18:47:21 +01:00
055-super-num-devs-mismatch btrfs-progs: tests: add test case for super num devs mismatch 2022-03-24 00:36:13 +01:00
056-raid56-false-alerts btrfs-progs: tests: fix fsck-tests/056 to run without root 2023-04-12 01:56:28 +02:00
057-seed-false-alerts btrfs-progs: tests: fix fsck-tests/057 to run without root 2023-04-12 01:56:36 +02:00
058-bad-free-space-tree-entry btrfs-progs: check: check for invalid free space tree entries 2022-08-16 15:18:12 +02:00
059-shrunk-device btrfs-progs: tests: fix fsck-tests/059 to run without root 2023-04-12 01:56:39 +02:00
060-degraded-check btrfs-progs: tests: fix fsck-tests/060 to run without root 2023-04-12 01:56:41 +02:00
061-out-of-order-inline-backref btrfs-progs: tests: add test image of out-of-order inline backref items 2023-11-03 18:04:37 +01:00