$LFS setstripe -E 1m -S 1M -c 1 $DIR/$tfile
dd if=/dev/urandom bs=1M count=10 >> $DIR/$tfile
[ $? != 0 ] || error "append must return an error"
+ dd if=/dev/urandom bs=1M count=10 oflag=direct >> $DIR/$tfile
+ [ $? != 0 ] || error "append must return an error"
}
run_test 26a "Append to not-existent component"
dd if=/dev/urandom bs=1M count=1 > $DIR/$tfile
dd if=/dev/urandom bs=1M count=1 >> $DIR/$tfile
[ $? != 0 ] || error "append must return an error"
+ dd if=/dev/urandom bs=1M count=1 oflag=direct >> $DIR/$tfile
+ [ $? != 0 ] || error "append must return an error"
}
run_test 26b "Append to not-existend component, file size is unknown"
$LFS setstripe -E 1m -S 1M -c 1 $DIR/$tfile
dd if=/dev/urandom bs=2M count=1 >> $DIR/$tfile
[ $? != 0 ] || error "append must return an error"
+ dd if=/dev/urandom bs=2M count=1 oflag=direct >> $DIR/$tfile
+ [ $? != 0 ] || error "append must return an error"
}
run_test 26c "Append to not-existend component, crossing the component border"