Move _scratch_remount_dump_log and _test_remount_dump_log from
common/inject to common/log. These routines do not inject errors and
should be placed with other common log functions.
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
_fail "Cannot inject error ${type} value ${value}."
fi
}
-
-# Unmount and remount the scratch device, dumping the log
-_scratch_remount_dump_log()
-{
- local opts="$1"
-
- if test -n "$opts"; then
- opts="-o $opts"
- fi
- _scratch_unmount
- _scratch_dump_log
- _scratch_mount "$opts"
-}
-
-# Unmount and remount the test device, dumping the log
-_test_remount_dump_log()
-{
- local opts="$1"
-
- if test -n "$opts"; then
- opts="-o $opts"
- fi
- _test_unmount
- _test_dump_log
- _test_mount "$opts"
-}
esac
}
+# Unmount and remount the scratch device, dumping the log
+_scratch_remount_dump_log()
+{
+ local opts="$1"
+
+ if test -n "$opts"; then
+ opts="-o $opts"
+ fi
+ _scratch_unmount
+ _scratch_dump_log
+ _scratch_mount "$opts"
+}
+
+# Unmount and remount the test device, dumping the log
+_test_remount_dump_log()
+{
+ local opts="$1"
+
+ if test -n "$opts"; then
+ opts="-o $opts"
+ fi
+ _test_unmount
+ _test_dump_log
+ _test_mount "$opts"
+}
+
# make sure this script returns success
/bin/true