run_test 150a "truncate/append tests"
test_150b() {
- check_for_fallocate
+ check_set_fallocate_or_skip
touch $DIR/$tfile
stack_trap "rm -f $DIR/$tfile; wait_delete_completed"
run_test 150b "Verify fallocate (prealloc) functionality"
test_150bb() {
- check_for_fallocate
+ check_set_fallocate_or_skip
touch $DIR/$tfile
stack_trap "rm -f $DIR/$tfile; wait_delete_completed"
[[ "${sum[0]}" == "$expect" ]] || error "fallocate unwritten is not zero"
- do_nodes $(comma_list $(osts_nodes)) \
- "$LCTL set_param osd-ldiskfs.*.fallocate_zero_blocks=1" ||
- error "set osd-ldiskfs.*.fallocate_zero_blocks=1"
+ check_set_fallocate 1
> $DIR/$tfile
fallocate -l $((1048576 * 20)) $DIR/$tfile || error "fallocate failed"
run_test 150bb "Verify fallocate modes both zero space"
test_150c() {
- check_for_fallocate
+ check_set_fallocate_or_skip
stack_trap "rm -f $DIR/$tfile; wait_delete_completed"
$LFS setstripe -c $OSTCOUNT -S1M $DIR/$tfile || error "setstripe failed"
run_test 150c "Verify fallocate Size and Blocks"
test_150d() {
- check_for_fallocate
+ check_set_fallocate_or_skip
stack_trap "rm -f $DIR/$tfile; wait_delete_completed"
$LFS setstripe -c $OSTCOUNT -S1M $DIR/$tdir || error "setstripe failed"
run_test 150d "Verify fallocate Size and Blocks - Non zero start"
test_150e() {
- check_for_fallocate
+ check_set_fallocate_or_skip
echo "df before:"
$LFS df