Whamcloud - gitweb
LU-16296 tests: sanity-flr/36c to save on writes 25/49025/8
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 3 Nov 2022 09:36:40 +0000 (12:36 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:13:47 +0000 (07:13 +0000)
there is no need to write 600MB as this may take significant
time if used with HDD.

Test-Parameters: trivial testlist=sanity-flr
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ic6001aaba7f349a14ade1c720d175430370dd7e9
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49025
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-flr.sh

index 6fe457d..7ed4281 100644 (file)
@@ -1591,7 +1591,7 @@ test_36c() {
        stack_trap "rm -f $tf"
 
        # write it in the background
-       dd if=/dev/zero of=$tf bs=1M count=600 &
+       $MULTIOP $tf Ow4096_w4096c &
        local pid=$!
 
        sleep 1
@@ -1601,6 +1601,7 @@ test_36c() {
        $LFS setstripe --comp-set -I0x20002 --comp-flags=prefer $tf ||
                error "set prefer mirror error"
 
+       kill -USR1 $pid
        wait $pid
 }
 run_test 36c "change prefer mirror during write shouldn't hung"