mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-03 04:02:04 +00:00
btrfs-progs: convert-test: trigger chunk allocation after convert
Populate fs after convert so we can trigger data chunk allocation. This can expose too restrict old rollback condition Reported-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
95ecaf0d61
commit
46b8ea0e99
@ -486,6 +486,10 @@ generate_dataset() {
|
|||||||
run_check $SUDO_HELPER ln -s "$dirpath/$long_filename" "$dirpath/slow_slink.$num"
|
run_check $SUDO_HELPER ln -s "$dirpath/$long_filename" "$dirpath/slow_slink.$num"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
large)
|
||||||
|
run_check $SUDO_HELPER dd if=/dev/urandom bs=32M count=1 \
|
||||||
|
of="$dirpath/$dataset_type" >/dev/null 2>&1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,6 +160,9 @@ convert_test_post_checks_all() {
|
|||||||
convert_test_post_check_checksums "$1"
|
convert_test_post_check_checksums "$1"
|
||||||
convert_test_post_check_permissions "$2"
|
convert_test_post_check_permissions "$2"
|
||||||
convert_test_post_check_acl "$3"
|
convert_test_post_check_acl "$3"
|
||||||
|
|
||||||
|
# Create a large file to trigger data chunk allocation
|
||||||
|
generate_dataset "large"
|
||||||
run_check_umount_test_dev
|
run_check_umount_test_dev
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user