mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-04 08:57:55 +00:00
Ran misc-tests/038 in /root/btrfs-progs:
make test-misc TEST=038\*
[TEST] misc-tests.sh
[TEST/misc] 038-backup-root-corruption
./test.sh: line 33: [: bytenr=65536,: integer expression expected
Backup slot 2 is not in use
test failed for case 038-backup-root-corruption
make: *** [Makefile:401: test-misc] Error 1
It's caused by the wrong line filtered by
$(dump_super | grep root | head -n1 | awk '{print $2}').
The command $(dump-super | grep root) outputs:
superblock: bytenr=65536, device=/root/btrfs-progs/tests/test.img
root 30605312
chunk_root_generation 5
root_level 0
chunk_root 22036480
chunk_root_level 0
log_root 0
log_root_transid 0
log_root_level 0
root_dir 6
backup_roots[4]:
Here
"superblock: bytenr=65536, device=/root/btrfs-progs/tests/test.img" is
selected but not the line "root 30605312".
Restricting the awk rule can fix it.
Fixes:
|
||
---|---|---|
.. | ||
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 |