mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-25 04:16:32 +00:00
btrfs-progs: tests: verify btrfstune output during uuid-rewrite
The 'Current fsid:' value does not match the real fsid. Reported-by: Mike Fleetwood <mike.fleetwood@googlemail.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
eb81f8d263
commit
4b4d742b26
@ -42,9 +42,12 @@ test_uuid_random()
|
||||
--rootdir $TOP/Documentation \
|
||||
$TEST_DEV
|
||||
run_check $TOP/btrfs-show-super "$TEST_DEV"
|
||||
run_check $TOP/btrfstune -f -u $TEST_DEV
|
||||
# btrfs-show-super is called within get_fs_uuid
|
||||
fsid=$(get_fs_uuid $TEST_DEV)
|
||||
currentfsid=$(run_check_stdout $TOP/btrfstune -f -u $TEST_DEV | \
|
||||
grep -i 'current fsid:' | awk '{print $3}')
|
||||
if ! [ $currentfsid = $origuuid ]; then
|
||||
_fail "FAIL: current UUID mismatch"
|
||||
fi
|
||||
run_check $TOP/btrfs-show-super "$TEST_DEV"
|
||||
run_check $SUDO_HELPER $TOP/btrfs check $TEST_DEV
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user