Bug 697454

Summary: [xfstests/btrfs] 243 shows corruption
Product: Red Hat Enterprise Linux 6 Reporter: Eryu Guan <eguan>
Component: kernelAssignee: Josef Bacik <jbacik>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: branto, jbacik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-07 14:24:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Simpe script to reproduce none

Description Eryu Guan 2011-04-18 10:52:37 UTC
Created attachment 492852 [details]
Simpe script to reproduce

Description of problem:
xfstests 243 shows corruption on btrfs. btrfsck returns error.

Version-Release number of selected component (if applicable):
2.6.32-131.0.1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. yum install rh-tests-kernel-filesystems-xfs-xfstests
2. cd /mnt/tests/kernel/filesystems/xfs/xfstests; ./install_all.sh
3. TEST_PARAM_FSTYPE=btrfs TEST_PARAM_RUNTESTS=017 make run

or use a simpler script attached
  
Actual results:
It's Test 5 and Test 6 causing the issue
=== 243.full ===
Test 1: Fallocate 40960 bytes and write 4096 bytes (buffered io).
Test 2: Fallocate 40960 bytes and write 4096 bytes (direct io).
Test 3: Fallocate 40960 bytes and write 40960 bytes (buffered io).
Test 4: Fallocate 40960 bytes and write 40960 bytes (direct io).
Test 5: Fallocate 128k, seek 256k and write 4k block (buffered io).
Test 6: Fallocate 128k, seek to 256k and write a 4k block (direct io).
_check_generic filesystem: filesystem on /dev/sda5 is inconsistent
*** fsck.btrfs output ***
root 5 inode 66910 errors 100
found 39845888 bytes used err is 1
total csum bytes: 35160
total tree bytes: 3506176
total fs tree bytes: 3153920
btree space waste bytes: 636211
file data blocks allocated: 36642816
 referenced 36155392
Btrfs Btrfs v0.19
*** end fsck.btrfs output
*** mount output ***
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext3 (rw)
/dev/sda7 on /mnt/xfstests/mnt3 type ext3 (rw)
/dev/sda8 on /mnt/xfstests/mnt4 type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda6 on /mnt/testarea/scratch type btrfs (rw,context="system_u:object_r:nfs_t:s0")
*** end mount output

Expected results:
Pass test

Additional info:
Failed beaker job
http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2011/04/731/73139/149513/1636945/6882169///test_log--kernel-filesystems-xfs-xfstests-243.log

This is not a regression, fails on 6.0 GA kernel

Comment 1 RHEL Program Management 2011-10-07 15:31:15 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 2 Josef Bacik 2012-06-07 14:24:16 UTC

*** This bug has been marked as a duplicate of bug 698324 ***