@@ -48,6 +48,8 @@ _cleanup()
cd /
rm -f $tmp.*
_clear_mount_stack
+ # make sure there's no bug cause dentry isn't be freed
+ rm -rf $MNTHEAD
}
# get standard environment, filters and checks
@@ -87,6 +89,7 @@ fs_stress()
# prepare some mountpoint dir
MNTHEAD=$TEST_DIR/$seq
+rm -rf $MNTHEAD
mkdir $MNTHEAD 2>>$seqres.full
mpA=$MNTHEAD/"$$"_mpA
mpB=$MNTHEAD/"$$"_mpB
@@ -56,6 +56,8 @@ _cleanup()
cd /
rm -f $tmp.*
_clear_mount_stack
+ # make sure there's no bug cause dentry isn't be freed
+ rm -rf $MNTHEAD
}
# get standard environment, filters and checks
@@ -95,6 +97,7 @@ fs_stress()
# prepare some mountpoint dir
MNTHEAD=$TEST_DIR/$seq
+rm -rf $MNTHEAD
mkdir $MNTHEAD 2>>$seqres.full
mpA=$MNTHEAD/"$$"_mpA
mpB=$MNTHEAD/"$$"_mpB
@@ -37,6 +37,8 @@ _cleanup()
cd /
rm -f $tmp.*
_clear_mount_stack
+ # make sure there's no bug cause dentry isn't be freed
+ rm -rf $MNTHEAD
}
# get standard environment, filters and checks
@@ -78,6 +80,7 @@ fs_stress()
# prepare some mountpoint dir
MNTHEAD=$TEST_DIR/$seq
+rm -rf $MNTHEAD
mkdir $MNTHEAD 2>>$seqres.full
mpA=$MNTHEAD/"$$"_mpA
mpB=$MNTHEAD/"$$"_mpB
After some shared subtrees test (bind/slave/shared/private), maybe some dentries isn't freed. For example, EBUSY maybe returned due to some bugs. This patch tries to verify that. Signed-off-by: Zorro Lang <zlang@redhat.com> --- tests/generic/409 | 3 +++ tests/generic/410 | 3 +++ tests/generic/411 | 3 +++ 3 files changed, 9 insertions(+)