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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>1092</bug_id>
          
          <creation_ts>2022-05-05 18:02:09 +0000</creation_ts>
          <short_desc>[Anck 4.19][ck26_rc1][xfs文件系统]xfstests xfs xfs/510  +inumbers last = 0 +bulkstat last = 0</short_desc>
          <delta_ts>2023-01-10 14:21:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>ANCK</classification>
          <product>ANCK 4.19 Dev</product>
          <component>fs</component>
          <version>4.19-026.x</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="kangjiangbo">kangjiangbo</reporter>
          <assigned_to name="gaoxiang">hsiangkao</assigned_to>
          <cc>joseph.qi</cc>
    
    
    <cc>shile.zhang</cc>
    
    
    <cc>wxm01174540</cc>
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3401</commentid>
    <comment_count>0</comment_count>
    <who name="kangjiangbo">kangjiangbo</who>
    <bug_when>2022-05-05 18:02:09 +0000</bug_when>
    <thetext>Description of problem:
xfs文件系统，xfstests下xfs/510 +inumbers last = 0 +bulkstat last = 0
x86和arm均存在该问题

失败几率：100%
测试日志：
]# ./check tests/xfs/510
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 iZ2ze6n8cezigzjqlcfjadZ 4.19.91-26_rc1.an7.x86_64 #1 SMP Mon Apr 25 17:24:24 CST 2022
MKFS_OPTIONS  -- -f -bsize=4096 /dev/vdb2
MOUNT_OPTIONS -- /dev/vdb2 /fs/scratch

xfs/510 - output mismatch (see /tmp/tone/run/xfstests/results//xfs/510.out.bad)
    --- tests/xfs/510.out       2022-04-27 21:06:26.915734313 +0800
    +++ /tmp/tone/run/xfstests/results//xfs/510.out.bad 2022-05-05 17:54:11.620560311 +0800
    @@ -1,2 +1,4 @@
     QA output created by 510
     Silence is golden.
    +inumbers last = 0
    +bulkstat last = 0
    ...
    (Run &apos;diff -u /tmp/tone/run/xfstests/tests/xfs/510.out /tmp/tone/run/xfstests/results//xfs/510.out.bad&apos;  to see the entire diff)
Ran: xfs/510
Failures: xfs/510
Failed 1 of 1 tests




Version-Release number of selected component (if applicable):
# uname -a
Linux iZ2ze6n8cezigzjqlcfjadZ 4.19.91-26_rc1.an7.x86_64 #1 SMP Mon Apr 25 17:24:24 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
# uname -a
Linux iZ2zebfu2pfe96wy4xb5lsZ 4.19.91-26_rc1.an7.aarch64 #1 SMP Mon Apr 25 17:30:58 CST 2022 aarch64 aarch64 aarch64 GNU/Linux
# cat /etc/os-release
NAME=&quot;Anolis OS&quot;
VERSION=&quot;7.7&quot;
ID=&quot;anolis&quot;
ID_LIKE=&quot;rhel fedora centos&quot;
VERSION_ID=&quot;7.7&quot;
PRETTY_NAME=&quot;Anolis OS 7.7&quot;
ANSI_COLOR=&quot;0;31&quot;
HOME_URL=&quot;https://openanolis.cn/&quot;
BUG_REPORT_URL=&quot;https://bugs.openanolis.cn/&quot;

CENTOS_MANTISBT_PROJECT=&quot;CentOS-7&quot;
CENTOS_MANTISBT_PROJECT_VERSION=&quot;7&quot;
REDHAT_SUPPORT_PRODUCT=&quot;centos&quot;
REDHAT_SUPPORT_PRODUCT_VERSION=&quot;7&quot;



How reproducible:
1. 准备环境
#准备disk1 disk2测试盘
disk1=vdb1
disk2=vdb2

dmsetup remove_all
wipefs -a --force /dev/$disk1
wipefs -a --force /dev/$disk2

mkfs -t xfs -L OStest -q -f /dev/$disk1
mkfs -t xfs -L OStest -q -f /dev/$disk2

export TEST_DIR=/fs/$disk1
export TEST_DEV=/dev/$disk1
export FSTYP=xfs
export SCRATCH_MNT=/fs/scratch
mkdir /fs/$disk1 -p
mkdir /fs/scratch -p
export SCRATCH_DEV=/dev/$disk2

2. 下载xfstests测试代码

3. 编译测试源码
cd xfstests-dev
export CFLAGS=&quot;-fcommon&quot;
make
make install

4.执行测试用例
./check tests/xfs/510


Expected results:


Additional info:
xfsprogs-4.5.0-22.an7.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3578</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Qi">joseph.qi</who>
    <bug_when>2022-05-06 19:41:35 +0000</bug_when>
    <thetext>*** Bug 1093 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3614</commentid>
    <comment_count>2</comment_count>
    <who name="gaoxiang">hsiangkao</who>
    <bug_when>2022-05-07 10:49:14 +0000</bug_when>
    <thetext>simply because new BULKSTAT and INUMBERS ioctls are not supported on 4.19 kernels:
https://lore.kernel.org/linux-xfs/156158193320.495715.6675123051075804739.stgit@magnolia/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3617</commentid>
    <comment_count>3</comment_count>
    <who name="gaoxiang">hsiangkao</who>
    <bug_when>2022-05-07 11:07:36 +0000</bug_when>
    <thetext>xfs/510 should be excluded with the 4.19 LTS anyway if we don&apos;t backport such new features, close with WONTFIX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3619</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Qi">joseph.qi</who>
    <bug_when>2022-05-07 11:41:34 +0000</bug_when>
    <thetext>Agree, we just fix bugs as of now, but not introduce new features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3620</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Qi">joseph.qi</who>
    <bug_when>2022-05-07 11:41:46 +0000</bug_when>
    <thetext>Agree, we just fix bugs as of now, but not introduce new features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12261</commentid>
    <comment_count>6</comment_count>
    <who name="meil_wei">wxm01174540</who>
    <bug_when>2023-01-10 14:21:34 +0000</bug_when>
    <thetext>*** Bug 3675 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>