2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Red Hat Inc. All Rights Reserved.
7 # Create dir over cached negative dentry, but whiteout removed from upper
9 # The following kernel commit fixed the kernel crash: 5e1275808630 ("ovl: check
10 # whiteout in ovl_create_over_whiteout()")
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # remove previous $seqres.full before test
34 # real QA test starts here
39 # Remove all files from previous tests
43 lowerdir=${OVL_BASE_SCRATCH_MNT}/${OVL_LOWER}
44 upperdir=${OVL_BASE_SCRATCH_MNT}/${OVL_UPPER}
46 touch ${lowerdir}/file
50 # Create whiteout and populate dcache with negative dentry
51 rm ${SCRATCH_MNT}/file
52 ls -l ${SCRATCH_MNT}/file > /dev/null 2>&1
54 # Remove whiteout and try to create dir over negative dentry
56 mkdir ${SCRATCH_MNT}/file > /dev/null 2>&1
59 $UMOUNT_PROG $SCRATCH_MNT
61 echo "Silence is golden"