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
32 _require_xfs_io_command "-T"
33 _require_xfs_io_command "flink"
37 testfile="${TEST_DIR}/tst-tmpfile-flink"
39 # test creating a r/w tmpfile, do I/O and link it into the namespace
43 -c "flink ${testfile}" \
44 ${TEST_DIR} | _filter_xfs_io
48 # test creating a r/o tmpfile. Should fail
49 $XFS_IO_PROG -Tr ${TEST_DIR} -c "close" 2>&1 | _filter_test_dir