2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Christoph Hellwig. All Rights Reserved.
7 # Test O_TMPFILE opens, and linking them back into the namespace.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
28 # real QA test starts here
33 _require_xfs_io_command "-T"
34 _require_xfs_io_command "flink"
38 testfile="${TEST_DIR}/tst-tmpfile-flink"
40 # test creating a r/w tmpfile, do I/O and link it into the namespace
44 -c "flink ${testfile}" \
45 ${TEST_DIR} | _filter_xfs_io
49 # test creating a r/o tmpfile. Should fail
50 $XFS_IO_PROG -Tr ${TEST_DIR} -c "close" 2>&1 | _filter_test_dir