#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2020 Kent Overstreet. All Rights Reserved. # # FS QA Test 609 # Test DIO writes from buffers mmapped from files that are also having dio # writes done to them . ./common/preamble _begin_fstest rw auto quick seq=`basename $0` seqres=$RESULT_DIR/$seq here=`pwd` tmp=/tmp/$$ status=1 # failure is the default! trap "_cleanup; exit \$status" 0 1 2 3 15 _cleanup() { cd / rm -f $tmp.* } # get standard environment, filters and checks . ./common/rc . ./common/filter # remove previous $seqres.full before test rm -f $seqres.full _supported_fs generic _require_scratch _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount $here/src/dio_mmap_torture -n 10000 -f $SCRATCH_MNT/$seq # success, all done echo "Silence is goodness ..." status=0 exit