Skip to contentSkip to conversation

xfs/439: mkfs again to avoid corruption failure

PATCH In review Zorro Lang 2 participants 3 messages Jan 25, 2018

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 xfs/439: mkfs again to avoid corruption failure

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.

---
 tests/xfs/439 | 3 +++
 1 file changed, 3 insertions(+)
tests/xfs/439 +3 -0
index 7be700cd..cb13a212 100755
@@ -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
Signature · 1 line
2.13.6
#1 lore raw
Quoted 23 lines · Zorro Lang

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.
Quoted 4 lines

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.

I think we just need _require_scratch_nocheck to skip fsck after test.

Thanks,
Eryu

Quoted 25 lines
---
 tests/xfs/439 | 3 +++
 1 file changed, 3 insertions(+)
tests/xfs/439 +3 -0
index 7be700cd..cb13a212 100755
@@ -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
Signature · 6 lines
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#2 lore raw
Quoted 24 lines · Eryu Guan
Quoted 23 lines · Zorro Lang

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.
Quoted 6 lines
Quoted 4 lines

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.

I think we just need _require_scratch_nocheck to skip fsck after test.

Hmm.. upstream kernel can't trigger this corruption failure on ppc64. I don't know if this bug fix patch can help to resolve this issue.

Thanks,
Zorro

Quoted 33 lines

Thanks,
Eryu

Quoted 25 lines
---
 tests/xfs/439 | 3 +++
 1 file changed, 3 insertions(+)
tests/xfs/439 +3 -0
index 7be700cd..cb13a212 100755
@@ -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
Signature · 6 lines
2.13.6

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

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