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 _begin_fstest auto quick
12 # Override the default cleanup function.
19 # Import common functions.
22 # real QA test starts here
26 _require_xfs_io_command "-T"
27 _require_xfs_io_command "flink"
29 testfile="${TEST_DIR}/tst-tmpfile-flink"
31 # test creating a r/w tmpfile, do I/O and link it into the namespace
35 -c "flink ${testfile}" \
36 ${TEST_DIR} | _filter_xfs_io
40 # test creating a r/o tmpfile. Should fail
41 $XFS_IO_PROG -Tr ${TEST_DIR} -c "close" 2>&1 | _filter_test_dir