Bug 1043585 - [xfs/xfstests xfs/291] xfs_metadump: XFS_CORRUPTION_ERROR in __read_verify on v5 file system
Summary: [xfs/xfstests xfs/291] xfs_metadump: XFS_CORRUPTION_ERROR in __read_verify on...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xfsprogs
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: Filesystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-16 17:53 UTC by Boris Ranto
Modified: 2014-03-24 11:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-24 11:17:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.