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>
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
$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"