Bug 662038 - [ext3/xfstests 225] last extent not marked as last
Summary: [ext3/xfstests 225] last extent not marked as last
Keywords:
Status: CLOSED DUPLICATE of bug 675986
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.7
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Josef Bacik
QA Contact: Filesystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-10 12:13 UTC by Boris Ranto
Modified: 2013-03-04 00:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-24 14:47:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Boris Ranto 2010-12-10 12:13:11 UTC
Description of problem:
Test case 225 uses fiemap-tester. For rhel5, this tester had to be patched so that it could compile (since fallocate is not defined directly in rhel5). When this patched version of test case is run, fiemap-tester reports:
ERROR: last extent not marked as last: 383
map is 'HDDDDDDHDDHHDHHHDHDHDHDHDHHDHHHDDHHDDHHDDHDDDDHDDDDHHHDDHDHHHDDHHHHHDDHDHDDHHHDHDDHDDHHDHDDDDHHDHHDDHDDHHDHDHDHHHHDDDHDDHDHDHHHDHDHHHDDHHHDHHHDDHHHHHDHDHDHDHDHDDDDDHHDDDHDHHDDDHDDHDHHHHHHHHDDHHDHHHHDHDHHDDDDDHDHDHDHDHDDDDDHDHDDHDDHHHDDHHHDDHDDHHHHDHHDDDHDHHHHHDDDDDDHHHHDHDHHDDHDDDDHHDDDDDDDHHDDHDDDHHDDDHDDHDHDHHHHDHHHHDDDHHDHHHHHDDHHHDDDDHDHDDDDDDDDHHHDDHHHHHDHHDHHHDDDHHDDDHDHHHDHD'

Version-Release number of selected component (if applicable):
2.6.18-235.el5

How reproducible:
Always

Steps to Reproduce:
1. Run patched test case (patch is in our xfstests) 225 for ext3:
TEST_PARAM_RUNTESTS="225" TEST_PARAM_FSTYPE="ext3" make
2. Watch the output
  
Actual results:
Test fails with the above error.

Expected results:
Test passes.

Additional info:
This might be just because I patched it wrong although I think it should not be the problem since it works that way for ext4,xfs on rhel5 and even ext3 on rhel6.
Compile patch:
--- xfstests-dev/src/fiemap-tester.c	2010-11-09 08:53:39.000000000 -0500
+++ xfstests-dev-new/src/fiemap-tester.c	2010-11-15 10:36:52.000000000 -0500
@@ -31,2 +31,5 @@
 #include <linux/fiemap.h>
+/* Following is for rhel5 */
+#include <sys/syscall.h>
+#define fallocate(A, B, C, D) syscall(__NR_fallocate, ((A)), ((B)), ((C)), ((D)))
 
Related output in beaker:
http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2010/12/371/37178/74127/832713/2624138///test_log--kernel-filesystems-xfs-xfstests-225.log

Comment 2 RHEL Program Management 2011-02-01 17:06:15 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.


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