2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Filipe Manana. All Rights Reserved.
5 # FS QA Test No. generic/319
7 # Regression test to make sure a directory inherits the default ACL from
8 # its parent directory. This test was motivated by an issue reported by
9 # a btrfs user. That issue is fixed and described by the following btrfs
12 # https://patchwork.kernel.org/patch/3046931/
15 seqres=$RESULT_DIR/$seq
16 echo "QA output created by $seq"
20 status=1 # FAILure is the default!
27 trap "_cleanup ; exit \$status" 0 1 2 3 15
29 # get standard environment, filters and checks
34 # real QA test starts here
42 _scratch_mkfs > /dev/null 2>&1
45 mkdir $SCRATCH_MNT/testdir
46 setfacl -d --set u::rwx,g::rwx,o::- $SCRATCH_MNT/testdir
47 getfacl -n --absolute-names $SCRATCH_MNT/testdir | _filter_scratch
49 mkdir $SCRATCH_MNT/testdir/testsubdir
50 getfacl -n --absolute-names $SCRATCH_MNT/testdir/testsubdir | _filter_scratch