From 46b8ea0e9928500c3fa12c65bf9049c0ac45fec8 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Mon, 19 Dec 2016 14:56:42 +0800 Subject: 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 Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- tests/common | 4 ++++ tests/common.convert | 3 +++ 2 files changed, 7 insertions(+) diff --git a/tests/common b/tests/common index 571118a1..51c2e267 100644 --- a/tests/common +++ b/tests/common @@ -486,6 +486,10 @@ generate_dataset() { run_check $SUDO_HELPER ln -s "$dirpath/$long_filename" "$dirpath/slow_slink.$num" done ;; + large) + run_check $SUDO_HELPER dd if=/dev/urandom bs=32M count=1 \ + of="$dirpath/$dataset_type" >/dev/null 2>&1 + ;; esac } diff --git a/tests/common.convert b/tests/common.convert index a2d31524..8c9242e5 100644 --- a/tests/common.convert +++ b/tests/common.convert @@ -160,6 +160,9 @@ convert_test_post_checks_all() { convert_test_post_check_checksums "$1" convert_test_post_check_permissions "$2" convert_test_post_check_acl "$3" + + # Create a large file to trigger data chunk allocation + generate_dataset "large" run_check_umount_test_dev } -- cgit v1.2.3