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 _begin_fstest acl auto quick
17 # Import common functions.
21 # real QA test starts here
26 _scratch_mkfs > /dev/null 2>&1
29 mkdir $SCRATCH_MNT/testdir
30 setfacl -d --set u::rwx,g::rwx,o::- $SCRATCH_MNT/testdir
31 getfacl -n --absolute-names $SCRATCH_MNT/testdir | _filter_scratch
33 mkdir $SCRATCH_MNT/testdir/testsubdir
34 getfacl -n --absolute-names $SCRATCH_MNT/testdir/testsubdir | _filter_scratch