mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eryu Guan
parent
afeb3b711c
commit
58937c3f24
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user