mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/409-411: remove all after unbind mountpoints
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> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
@@ -48,6 +48,8 @@ _cleanup()
|
|||||||
cd /
|
cd /
|
||||||
rm -f $tmp.*
|
rm -f $tmp.*
|
||||||
_clear_mount_stack
|
_clear_mount_stack
|
||||||
|
# make sure there's no bug cause dentry isn't be freed
|
||||||
|
rm -rf $MNTHEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
# get standard environment, filters and checks
|
# get standard environment, filters and checks
|
||||||
@@ -87,6 +89,7 @@ fs_stress()
|
|||||||
|
|
||||||
# prepare some mountpoint dir
|
# prepare some mountpoint dir
|
||||||
MNTHEAD=$TEST_DIR/$seq
|
MNTHEAD=$TEST_DIR/$seq
|
||||||
|
rm -rf $MNTHEAD
|
||||||
mkdir $MNTHEAD 2>>$seqres.full
|
mkdir $MNTHEAD 2>>$seqres.full
|
||||||
mpA=$MNTHEAD/"$$"_mpA
|
mpA=$MNTHEAD/"$$"_mpA
|
||||||
mpB=$MNTHEAD/"$$"_mpB
|
mpB=$MNTHEAD/"$$"_mpB
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ _cleanup()
|
|||||||
cd /
|
cd /
|
||||||
rm -f $tmp.*
|
rm -f $tmp.*
|
||||||
_clear_mount_stack
|
_clear_mount_stack
|
||||||
|
# make sure there's no bug cause dentry isn't be freed
|
||||||
|
rm -rf $MNTHEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
# get standard environment, filters and checks
|
# get standard environment, filters and checks
|
||||||
@@ -95,6 +97,7 @@ fs_stress()
|
|||||||
|
|
||||||
# prepare some mountpoint dir
|
# prepare some mountpoint dir
|
||||||
MNTHEAD=$TEST_DIR/$seq
|
MNTHEAD=$TEST_DIR/$seq
|
||||||
|
rm -rf $MNTHEAD
|
||||||
mkdir $MNTHEAD 2>>$seqres.full
|
mkdir $MNTHEAD 2>>$seqres.full
|
||||||
mpA=$MNTHEAD/"$$"_mpA
|
mpA=$MNTHEAD/"$$"_mpA
|
||||||
mpB=$MNTHEAD/"$$"_mpB
|
mpB=$MNTHEAD/"$$"_mpB
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ _cleanup()
|
|||||||
cd /
|
cd /
|
||||||
rm -f $tmp.*
|
rm -f $tmp.*
|
||||||
_clear_mount_stack
|
_clear_mount_stack
|
||||||
|
# make sure there's no bug cause dentry isn't be freed
|
||||||
|
rm -rf $MNTHEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
# get standard environment, filters and checks
|
# get standard environment, filters and checks
|
||||||
@@ -78,6 +80,7 @@ fs_stress()
|
|||||||
|
|
||||||
# prepare some mountpoint dir
|
# prepare some mountpoint dir
|
||||||
MNTHEAD=$TEST_DIR/$seq
|
MNTHEAD=$TEST_DIR/$seq
|
||||||
|
rm -rf $MNTHEAD
|
||||||
mkdir $MNTHEAD 2>>$seqres.full
|
mkdir $MNTHEAD 2>>$seqres.full
|
||||||
mpA=$MNTHEAD/"$$"_mpA
|
mpA=$MNTHEAD/"$$"_mpA
|
||||||
mpB=$MNTHEAD/"$$"_mpB
|
mpB=$MNTHEAD/"$$"_mpB
|
||||||
|
|||||||
Reference in New Issue
Block a user