Do more testing on cumulative restores.
[xfstests-dev.git] / common.dump
index 4f89b6f59d0847c4a51a83d64d1e435a6660b3ce..88651c50691e74540e695426266f57172c55c710 100644 (file)
@@ -296,10 +296,12 @@ _cleanup()
 #
 _stable_fs()
 {
 #
 _stable_fs()
 {
+    _saveddir=`pwd`; cd /
     umount $SCRATCH_MNT >>$seq.full ||\
        _error "unmount failed"
     mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full ||\
        _error "mount failed"
     umount $SCRATCH_MNT >>$seq.full ||\
        _error "unmount failed"
     mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full ||\
        _error "mount failed"
+    cd $_saveddir
 }
 
 #
 }
 
 #