mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-18 02:36:56 +00:00
[BUG] Test case misc/034 can fail like this: ====== RUN CHECK mount /dev/loop16 /home/adam/btrfs-progs/tests/mnt mount: /home/adam/btrfs-progs/tests/mnt: wrong fs type, bad option, bad superblock on /dev/loop16, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call. failed: mount /dev/loop16 /home/adam/btrfs-progs/tests/mnt And the dmesg looks like this: loop16: detected capacity change from 0 to 1024000 loop17: detected capacity change from 0 to 1024000 BTRFS: device fsid 593e23af-a7e6-4360-b16a-229f415de697 devid 1 transid 6 /dev/loop16 scanned by mount (79348) BTRFS info (device loop16): using crc32c (crc32c-intel) checksum algorithm BTRFS info (device loop16): found metadata UUID change in progress flag, clearing BTRFS info (device loop16): disk space caching is enabled BTRFS error (device loop16): devid 2 uuid cde07de6-db7e-4b34-909e-d3db6e7c0b06 is missing BTRFS error (device loop16): failed to read the system array: -2 BTRFS error (device loop16): open_ctree failed [CAUSE] From the dmesg, it shows that although both loopback devices are properly registered, only one is properly scanned by mount. Thus the other device is missing, and without "-o degraded" the filesystem failed to be mounted. [FIX] Before we mount the filesystem, also scan them in their passed order to properly assemble the device list for mount. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
001-btrfstune-features | ||
002-uuid-rewrite | ||
003-zero-log | ||
004-shrink-fs | ||
005-convert-progress-thread-crash | ||
006-image-on-missing-device | ||
007-subvolume-sync | ||
008-leaf-crossing-stripes | ||
009-subvolume-sync-must-wait | ||
010-convert-delete-ext2-subvol | ||
011-delete-missing-device | ||
012-find-root-no-result | ||
013-subvolume-sync-crash | ||
014-filesystem-label | ||
015-dump-super-garbage | ||
016-send-clone-src | ||
017-recv-stream-malformatted | ||
018-recv-end-of-stream | ||
019-receive-clones-on-mounted-subvol | ||
020-fix-superblock-corruption | ||
021-image-multi-devices | ||
022-filesystem-du-on-empty-subvol | ||
023-device-usage-with-missing-device | ||
024-inspect-internal-rootid | ||
025-zstd-compression | ||
026-image-non-printable-chars | ||
027-subvol-list-deleted-toplevel | ||
028-superblock-recover | ||
029-send-p-different-mountpoints | ||
030-missing-device-image | ||
031-qgroup-parent-child-relation | ||
032-bad-item-ptr | ||
033-filename-length-limit | ||
034-metadata-uuid | ||
035-receive-common-mount-point-prefix | ||
036-receive-dump-invalid-stream | ||
037-fi-show-on-new-file | ||
038-backup-root-corruption | ||
039-receive-clone-from-current-subvolume | ||
040-subvolume-delete-default | ||
041-subvolume-delete-during-send | ||
042-inspect-internal-logical-resolve | ||
043-subvolume-set-default-toplevel | ||
045-receive-check-mount-type | ||
046-seed-multi-mount | ||
047-raid5-convert | ||
048-image-restore-mount | ||
049-btrfstune-transid-mismatch | ||
050-receive-prop-ro-to-rw | ||
051-warning-rw-subvol-received-uuid | ||
052-seed-dirty-log | ||
053-receive-write-encoded | ||
054-receive-dump-newlines | ||
055-qgroup-clear-stale | ||
056-subvolume-list-uuid |