2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
7 # Check ctime and mtime are updated on truncate(2) and ftruncate(2)
9 # Regression test for commit:
10 # 3972f26 btrfs: update timestamps on truncate()
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # real QA test starts here
35 testfile=$TEST_DIR/testfile.$seq
37 echo "Silence is golden"
39 $here/src/t_truncate_cmtime $testfile 2>&1