mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: add overlayfs isupport in _scratch_cleanup_files()
All files in lower/upper dirs should be removed for overlayfs in _scratch_cleanup_files(), not only files in merged dir, otherwise files from lower dir won't be removed. Signed-off-by: Eryu Guan <eguan@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
@@ -707,9 +707,17 @@ _mkfs_dev()
|
|||||||
# remove all files in $SCRATCH_MNT, useful when testing on NFS/CIFS
|
# remove all files in $SCRATCH_MNT, useful when testing on NFS/CIFS
|
||||||
_scratch_cleanup_files()
|
_scratch_cleanup_files()
|
||||||
{
|
{
|
||||||
_scratch_mount
|
case $FSTYP in
|
||||||
rm -rf $SCRATCH_MNT/*
|
overlay)
|
||||||
_scratch_unmount
|
# $SCRATCH_DEV is a valid directory in overlay case
|
||||||
|
rm -rf $SCRATCH_DEV/*
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
_scratch_mount
|
||||||
|
rm -rf $SCRATCH_MNT/*
|
||||||
|
_scratch_unmount
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_scratch_mkfs()
|
_scratch_mkfs()
|
||||||
|
|||||||
Reference in New Issue
Block a user