2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat, Inc. All Rights Reserved.
7 # Test if O_TMPFILE files inherit POSIX Default ACLs when they are linked into
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
30 # real QA test starts here
35 _require_xfs_io_command "-T"
36 _require_xfs_io_command "flink"
39 # remove previous $seqres.full before test
42 testdir="${TEST_DIR}/d.$seq"
43 testfile="${testdir}/tst-tmpfile-flink"
48 setfacl -d -m u::rwx,g::rwx,o::rx ${testdir}
49 $XFS_IO_PROG -T -m 0666 \
52 -c "flink ${testfile}" \
53 ${testdir} | _filter_xfs_io
54 stat -c '%a' ${testfile}