From 979ed6f3330e0b5935cba4e80519bab7390df381 Mon Sep 17 00:00:00 2001 From: Lachlan McIlroy Date: Thu, 20 Sep 2007 06:13:47 +0000 Subject: [PATCH] Check filesystem after log replay and abort test if errors found Merge of master-melb:xfs-cmds:29730a by kenmcd. Check filesystem after log replay and abort test if errors found --- 137 | 7 +++++++ 138 | 7 +++++++ 139 | 7 +++++++ 140 | 7 +++++++ 179 | 7 +++++++ 180 | 7 +++++++ 6 files changed, 42 insertions(+) diff --git a/137 b/137 index 7e6340a0..4dbf8474 100755 --- a/137 +++ b/137 @@ -57,6 +57,13 @@ src/godown $SCRATCH_MNT umount $SCRATCH_MNT _scratch_mount +umount $SCRATCH_MNT +if [ ! _check_scratch_fs ] +then + echo error detected in filesystem + exit +fi +_scratch_mount # check file size and contents i=1; diff --git a/138 b/138 index eb3a57a5..7cf90202 100755 --- a/138 +++ b/138 @@ -63,6 +63,13 @@ src/godown $SCRATCH_MNT umount $SCRATCH_MNT _scratch_mount +umount $SCRATCH_MNT +if [ ! _check_scratch_fs ] +then + echo error detected in filesystem + exit +fi +_scratch_mount # check file size and contents i=1; diff --git a/139 b/139 index 24a4417e..48052799 100755 --- a/139 +++ b/139 @@ -63,6 +63,13 @@ src/godown $SCRATCH_MNT umount $SCRATCH_MNT _scratch_mount +umount $SCRATCH_MNT +if [ ! _check_scratch_fs ] +then + echo error detected in filesystem + exit +fi +_scratch_mount # check file size and contents i=1; diff --git a/140 b/140 index 91479660..797efc4e 100755 --- a/140 +++ b/140 @@ -63,6 +63,13 @@ src/godown $SCRATCH_MNT umount $SCRATCH_MNT _scratch_mount +umount $SCRATCH_MNT +if [ ! _check_scratch_fs ] +then + echo error detected in filesystem + exit +fi +_scratch_mount # check file size and contents i=1; diff --git a/179 b/179 index ac0bbd58..feeddcce 100644 --- a/179 +++ b/179 @@ -85,6 +85,13 @@ done src/godown $SCRATCH_MNT umount $SCRATCH_MNT _scratch_mount +umount $SCRATCH_MNT +if [ ! _check_scratch_fs ] +then + echo error detected in filesystem + exit +fi +_scratch_mount _check_files status=0 diff --git a/180 b/180 index 20b174a7..13ed6fd7 100644 --- a/180 +++ b/180 @@ -86,6 +86,13 @@ sync src/godown $SCRATCH_MNT umount $SCRATCH_MNT _scratch_mount +umount $SCRATCH_MNT +if [ ! _check_scratch_fs ] +then + echo error detected in filesystem + exit +fi +_scratch_mount _check_files status=0 -- 2.47.3