fstests: use _scratch_shutdown instead of calling src/godown

Overlayfs introduces some complexity with regards to what path we have
to use to shut down the scratch filesystem: it's SCRATCH_MNT for regular
filesystems, but it's OVL_BASE_SCRATCH_MNT (i.e. the lower mount of the
overlay) if overlayfs is enabled.  The helper works through all that, so
we might as well use it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Darrick J. Wong
2019-05-20 15:31:10 -07:00
committed by Eryu Guan
parent afeb3b711c
commit 58937c3f24
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ echo "touch files"
touch $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
echo "going down:"
src/godown -f $SCRATCH_MNT
_scratch_shutdown -f
echo "unmounting shutdown filesystem:"
_scratch_unmount 2>&1 | _filter_scratch