[PATCH] xfs/439: mkfs again to avoid corruption failure

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



xfs/439 always fails on ppc64 as below:
  # ./check xfs/439
  ...
  ...
  xfs/439 2s ... 1s
  _check_xfs_filesystem: filesystem on /dev/sda5 is inconsistent (r)
  (see /var/lib/xfstests/results//xfs/439.full for details)
  Ran: xfs/439
  Failures: xfs/439
  Failed 1 of 1 tests

  # xfs_repair -n $SCRATCH_DEV
  ...
  ...
  Phase 6 - check inode connectivity...
          - traversing filesystem ...
          - traversal finished ...
          - moving disconnected inodes to lost+found ...
  Phase 7 - verify link counts...
  Maximum metadata LSN (1:2) is ahead of log (1:2).
  Would format log to cycle 4.
  No modify flag set, skipping filesystem flush and exiting.

It can't be fixed by log replay (scratch_mount), so mkfs again to
make sure the case won't be failed at the end.

Signed-off-by: Zorro Lang <zlang@xxxxxxxxxx>
---
 tests/xfs/439 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/xfs/439 b/tests/xfs/439
index 7be700cd..cb13a212 100755
--- a/tests/xfs/439
+++ b/tests/xfs/439
@@ -78,6 +78,9 @@ fi
 # or CONFIG_XFS_DEBUG (when bug_on_assert is disabled) build, so filter them.
 _check_dmesg _filter_assert_dmesg
 
+# mkfs again to avoid xfs corruption at the end of test
+_scratch_mkfs > /dev/null 2>&1
+
 echo "Silence is golden"
 
 # success, all done
-- 
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux