2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat Inc. All Rights Reserved.
7 # "work" directory under workdir should be cleaned up
8 # well on overlayfs startup, or overlayfs will be mounted
10 # Kernel commit below fixes it.
11 # eea2fb4851e9 ovl: proper cleanup of workdir
13 # This reproducer was originally written by
14 # Miklos Szeredi <mszeredi@redhat.com>
17 _begin_fstest auto quick mount
19 # Import common functions.
22 # real QA test starts here
24 # Modify as appropriate.
28 # Remove all files from previous tests
32 wkdir=$OVL_BASE_SCRATCH_MNT/$OVL_WORK
33 mkdir -p $wkdir/work/foo
37 # try writing to mountpoint
38 touch $SCRATCH_MNT/bar
40 # checking work dir is clean
41 if [ -e $wkdir/work/foo ] ; then
42 echo "work dir is not clean"
44 echo "Silence is golden"