fstests: move test group info to test files
[xfstests-dev.git] / tests / overlay / 009
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat Inc.  All Rights Reserved.
4 #
5 # FS QA Test 009
6 #
7 # dentry leak for default_permissions mount option
8 #
9 # This is fixed by kernel commit named as
10 # ovl: fix dentry leak for default_permissions
11 #
12 . ./common/preamble
13 _begin_fstest auto quick
14
15 # Import common functions.
16 . ./common/filter
17
18 # real QA test starts here
19 _supported_fs overlay
20 _require_scratch
21
22 # Remove all files from previous tests
23 _scratch_mkfs
24
25 # Create test file in lowerdir
26 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
27 mkdir -p $lowerdir
28 touch $lowerdir/testfile
29
30 # mount overlay with default_permissions option, get a reference on the dentry
31 _scratch_mount -o default_permissions
32 cat $SCRATCH_MNT/testfile
33
34 # overlay will be unmounted by test harness and kernel BUG if dentry leaked
35 echo "Silence is golden"
36 status=0
37 exit