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
34 _require_xfs_io_command "-T"
35 _require_xfs_io_command "flink"
38 # remove previous $seqres.full before test
41 testdir="${TEST_DIR}/d.$seq"
42 testfile="${testdir}/tst-tmpfile-flink"
47 setfacl -d -m u::rwx,g::rwx,o::rx ${testdir}
48 $XFS_IO_PROG -T -m 0666 \
51 -c "flink ${testfile}" \
52 ${testdir} | _filter_xfs_io
53 stat -c '%a' ${testfile}