| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 19/20] xfs: run xfs_repair at the end of each test |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 16 Jun 2016 18:48:01 -0700 |
| Cc: | linux-btrfs@xxxxxxxxxxxxxxx, fstests@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <146612796204.25024.18254357523133394284.stgit@xxxxxxxxxxxxxxxx> |
| References: | <146612796204.25024.18254357523133394284.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Run xfs_repair twice at the end of each test -- once to rebuild
the btree indices, and again with -n to check the rebuild work.
Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
common/rc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/common/rc b/common/rc
index 1225047..847191e 100644
--- a/common/rc
+++ b/common/rc
@@ -2225,6 +2225,9 @@ _check_xfs_filesystem()
ok=0
fi
+ $XFS_REPAIR_PROG $extra_options $extra_log_options $extra_rt_options
$device >$tmp.repair 2>&1
+ cat $tmp.repair | _fix_malloc >>$seqres.full
+
$XFS_REPAIR_PROG -n $extra_options $extra_log_options $extra_rt_options
$device >$tmp.repair 2>&1
if [ $? -ne 0 ]
then
|
| Previous by Date: | [PATCH 18/20] xfs/128: use $XFS_FSR_PROG instead of xfs_fsr directly, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH v6 0/6] xfs-docs: reorganize chapters, rmapbt and refcountbt chapter updates, Darrick J. Wong |
| Previous by Thread: | [PATCH 18/20] xfs/128: use $XFS_FSR_PROG instead of xfs_fsr directly, Darrick J. Wong |
| Next by Thread: | [PATCH 20/20] xfs: scrub fs (if still mounted) at the end of the test, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |