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 _begin_fstest auto quick whiteout
15 # Import common functions.
18 # real QA test starts here
22 # Remove all files from previous tests
26 lowerdir=${OVL_BASE_SCRATCH_MNT}/${OVL_LOWER}
27 upperdir=${OVL_BASE_SCRATCH_MNT}/${OVL_UPPER}
29 touch ${lowerdir}/file
33 # Create whiteout and populate dcache with negative dentry
34 rm ${SCRATCH_MNT}/file
35 ls -l ${SCRATCH_MNT}/file > /dev/null 2>&1
37 # Remove whiteout and try to create dir over negative dentry
39 mkdir ${SCRATCH_MNT}/file > /dev/null 2>&1
42 $UMOUNT_PROG $SCRATCH_MNT
44 echo "Silence is golden"