<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>678</bug_id>
          
          <creation_ts>2011-01-27 23:33:32 +0000</creation_ts>
          <short_desc>[LTP] fallocate always gets -EFBIG on qemuarm/qemumips</short_desc>
          <delta_ts>2011-08-19 00:53:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-runtime</component>
          <version>1.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>looks to be a simulation limitation (May 16, 2011)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Tian">kevin.tian</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11555</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2011-01-27 23:33:32 +0000</bug_when>
    <thetext>This is found on 1.0-M2 build

Actually ext3 doesn&apos;t support fallocate operation, and thus -EOPNOTSUPP is expected, and then LTP will skip related tests. This happens on all other platforms except qemuarm and qemumips.

On these two targets, -EFBIG is always returned whatever offset and length is given. You can create a new file, and then use fallocate utility included in utillinux (included in SDK image):
    fallocate new_file -o any_offset -l any_length

take a look at the kernel code (fs/open.c):

do_fallocate:
    ...
    /* Check for wrap through zero too */
    if (((offset + len) &gt; inode-&gt;i_sb-&gt;s_maxbytes) || (offset + len) &lt; 0))
        return -EFBIG;

    IF (!inode-&gt;i_op-&gt;fallocate)
        return -EOPNOTSUPP;

I don&apos;t understand why the -EFBIG condition is triggered in this case, and thus still report this problem though it&apos;s expected to fail on ext3 file system

I tried latest 01/27 nightly arm kernel. same error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11577</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-01-28 12:22:10 +0000</bug_when>
    <thetext>we&apos;ll have a look at this as time permits</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15433</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-08-12 00:23:15 +0000</bug_when>
    <thetext>We perform LTP on 20110806 build by using latest ltp-full-20110606 instead of ltp-full-20101031. These cases can pass now.

The output message as below: 
##########
&lt;&lt;&lt;test_start&gt;&gt;&gt;
tag=fallocate01 stime=1313050545
cmdline=&quot;fallocate01&quot;
contacts=&quot;&quot;
analysis=exit
&lt;&lt;&lt;test_output&gt;&gt;&gt;
fallocate01    1  TCONF  :  fallocate system call is not implemented
fallocate01    2  TCONF  :  Remaining cases not appropriate for configuration
&lt;&lt;&lt;execution_status&gt;&gt;&gt;
initiation_status=&quot;ok&quot;
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=2
&lt;&lt;&lt;test_end&gt;&gt;&gt;
&lt;&lt;&lt;test_start&gt;&gt;&gt;
tag=fallocate02 stime=1313050545
cmdline=&quot;fallocate02&quot;
contacts=&quot;&quot;
analysis=exit
&lt;&lt;&lt;test_output&gt;&gt;&gt;
fallocate02    1  TPASS  :  fallocate(tfile_read_14572:5, 1, 0, 4096) returned 9
fallocate02    2  TPASS  :  fallocate(tfile_write_14572:6, 1, -4096, 4096) returned 22
fallocate02    3  TPASS  :  fallocate(tfile_write_14572:6, 1, 4096, -4096) returned 22
fallocate02    4  TPASS  :  fallocate(tfile_write_14572:6, 1, 49152, 0) returned 22
fallocate02    5  TPASS  :  fallocate(tfile_write_14572:6, 1, 49152, -4096) returned 22
fallocate02    6  TPASS  :  fallocate(tfile_write_14572:6, 1, -98304, 4096) returned 22
fallocate02    7  TCONF  :  fallocate system call is not implemented
fallocate02    8  TCONF  :  Remaining cases not appropriate for configuration
&lt;&lt;&lt;execution_status&gt;&gt;&gt;
initiation_status=&quot;ok&quot;
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=2
&lt;&lt;&lt;test_end&gt;&gt;&gt;
&lt;&lt;&lt;test_start&gt;&gt;&gt;
tag=fallocate03 stime=1313050545
cmdline=&quot;fallocate03&quot;
contacts=&quot;&quot;
analysis=exit
&lt;&lt;&lt;test_output&gt;&gt;&gt;
fallocate03    1  TCONF  :  fallocate system call is not implemented
fallocate03    2  TCONF  :  Remaining cases not appropriate for configuration
&lt;&lt;&lt;execution_status&gt;&gt;&gt;
initiation_status=&quot;ok&quot;
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=2
&lt;&lt;&lt;test_end&gt;&gt;&gt;
##############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15440</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-08-12 06:47:02 +0000</bug_when>
    <thetext>marking as resolved, since this can&apos;t be seen on the latest builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15593</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-08-19 00:53:42 +0000</bug_when>
    <thetext>Verified it with 20110806 build by using ltp-full-20110606.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>