Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1043585

Summary: [xfs/xfstests xfs/291] xfs_metadump: XFS_CORRUPTION_ERROR in __read_verify on v5 file system
Product: Red Hat Enterprise Linux 7 Reporter: Boris Ranto <branto>
Component: xfsprogsAssignee: Eric Sandeen <esandeen>
Status: CLOSED CURRENTRELEASE QA Contact: Filesystem QE <fs-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dchinner, eguan
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-24 11:17:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Boris Ranto 2013-12-16 17:53:39 UTC
Description of problem:
The test case xfs/291 fails because xfs_metadump does not seem to support v5 file systems properly, yet.

Version-Release number of selected component (if applicable):
kernel-3.10.0-57.el7.x86_64
xfsprogs-3.2.0-0.3.alpha2.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run the test case on v5 file system (test dev should also be mkfs'd with -m crc=1)
MKFS_OPTIONS="-m crc=1" ./check xfs/291
2.
3.

Actual results:
A lot of messages suggesting corruption like:
__read_verify: XFS_CORRUPTION_ERROR
xfs_dir3_block_read_verify: XFS_CORRUPTION_ERROR
xfs_dir3_block_write_verify: XFS_CORRUPTION_ERROR
write_buf: write verifer failed on bno 0x155c0/0x1000

Expected results:
The test passes

Additional info:

Full diff (I've factored out the output to xfs_metadump):

+__read_verify: XFS_CORRUPTION_ERROR
+xfs_dir3_block_read_verify: XFS_CORRUPTION_ERROR
+xfs_dir3_block_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x155c0/0x1000
+write_buf: write verifer failed on bno 0x155b0/0x1000
+write_buf: write verifer failed on bno 0x155a0/0x1000
+write_buf: write verifer failed on bno 0x15590/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x2e760/0x1000
+write_buf: write verifer failed on bno 0x2e770/0x1000
+write_buf: write verifer failed on bno 0x2e780/0x1000
+write_buf: write verifer failed on bno 0x2e790/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x2e7e0/0x1000
+write_buf: write verifer failed on bno 0x2e7f0/0x1000
+write_buf: write verifer failed on bno 0x2e800/0x1000
+write_buf: write verifer failed on bno 0x2e810/0x1000
+__read_verify: XFS_CORRUPTION_ERROR
+__write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x2e7a0/0x1000
+write_buf: write verifer failed on bno 0x2e7b0/0x1000
+write_buf: write verifer failed on bno 0x2e7c0/0x1000
+write_buf: write verifer failed on bno 0x2e7d0/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c998/0x1000
+write_buf: write verifer failed on bno 0x3c988/0x1000
+write_buf: write verifer failed on bno 0x3c978/0x1000
+write_buf: write verifer failed on bno 0x3c968/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c918/0x1000
+write_buf: write verifer failed on bno 0x3c908/0x1000
+write_buf: write verifer failed on bno 0x3c8f8/0x1000
+write_buf: write verifer failed on bno 0x3c8e8/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c8d8/0x1000
+write_buf: write verifer failed on bno 0x3c8c8/0x1000
+write_buf: write verifer failed on bno 0x3c8b8/0x1000
+write_buf: write verifer failed on bno 0x3c8a8/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c898/0x1000
+write_buf: write verifer failed on bno 0x3c888/0x1000
+write_buf: write verifer failed on bno 0x3c878/0x1000
+write_buf: write verifer failed on bno 0x3c868/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c7d8/0x1000
+write_buf: write verifer failed on bno 0x3c7c8/0x1000
+write_buf: write verifer failed on bno 0x3c7b8/0x1000
+write_buf: write verifer failed on bno 0x3c7a8/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c798/0x1000
+write_buf: write verifer failed on bno 0x3c788/0x1000
+write_buf: write verifer failed on bno 0x3c778/0x1000
+write_buf: write verifer failed on bno 0x3c768/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c758/0x1000
+write_buf: write verifer failed on bno 0x3c748/0x1000
+write_buf: write verifer failed on bno 0x3c6f8/0x1000
+write_buf: write verifer failed on bno 0x3c6e8/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c698/0x1000
+write_buf: write verifer failed on bno 0x3c688/0x1000
+write_buf: write verifer failed on bno 0x3c678/0x1000
+write_buf: write verifer failed on bno 0x3c668/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c658/0x1000
+write_buf: write verifer failed on bno 0x3c648/0x1000
+write_buf: write verifer failed on bno 0x3c638/0x1000
+write_buf: write verifer failed on bno 0x3c628/0x1000
+xfs_dir3_data_read_verify: XFS_CORRUPTION_ERROR
+Invalid inode number 0x0
+xfs_dir_ino_validate: XFS_ERROR_REPORT
+xfs_dir3_data_write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c5d8/0x1000
+write_buf: write verifer failed on bno 0x3c5c8/0x1000
+write_buf: write verifer failed on bno 0x3c5b8/0x1000
+write_buf: write verifer failed on bno 0x3c5a8/0x1000
+xfs_da3_node_read_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c948/0x1000
+write_buf: write verifer failed on bno 0x3c938/0x1000
+write_buf: write verifer failed on bno 0x3c928/0x1000
+__read_verify: XFS_CORRUPTION_ERROR
+__write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c858/0x1000
+write_buf: write verifer failed on bno 0x3c848/0x1000
+write_buf: write verifer failed on bno 0x3c838/0x1000
+write_buf: write verifer failed on bno 0x3c828/0x1000
+__read_verify: XFS_CORRUPTION_ERROR
+__write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c818/0x1000
+write_buf: write verifer failed on bno 0x3c808/0x1000
+write_buf: write verifer failed on bno 0x3c7f8/0x1000
+write_buf: write verifer failed on bno 0x3c7e8/0x1000
+__read_verify: XFS_CORRUPTION_ERROR
+__write_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c618/0x1000
+write_buf: write verifer failed on bno 0x3c608/0x1000
+write_buf: write verifer failed on bno 0x3c5f8/0x1000
+write_buf: write verifer failed on bno 0x3c5e8/0x1000
+xfs_dir3_free_read_verify: XFS_CORRUPTION_ERROR
+write_buf: write verifer failed on bno 0x3c9f8/0x1000
+write_buf: write verifer failed on bno 0x3ca18/0x1000
+write_buf: write verifer failed on bno 0x3ca28/0x1000
+Unknown directory buffer type!
+Writing unknown directory buffer type!
+Unknown directory buffer type!
+Writing unknown directory buffer type!
... (the last two lines repeat ~50 more times)

Comment 1 Eric Sandeen 2014-02-27 20:17:46 UTC
Dave has these fixes mostly done, I think we can sneak this fix in still.

Comment 2 Eryu Guan 2014-03-24 11:17:23 UTC
I think this is fixed in xfsprogs-3.2.0-0.9.alpha2.el7, closed.

Running test xfs/291
#! /bin/bash
# FS QA Test No. 291
#
# Test xfs_repair on fragmented multi-block dir2 fs
#
#-----------------------------------------------------------------------
# Copyright (c) Red Hat, Inc.  All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 ibm-hs23-02 3.10.0-113.el7.x86_64
MKFS_OPTIONS  -- -f -b size=4096 -m crc=1 /dev/sda3
MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /dev/sda3 /mnt/xfstests/mnt2

xfs/291	 41s
Ran: xfs/291
Passed all 1 tests