Description of problem: xfs文件系统,xfstests下xfs/449 +xfs_info: /dev/vdb2 contains a mounted filesystem x86和arm均存在该问题 失败几率:100% 测试日志: # ./check tests/xfs/449 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/449 - output mismatch (see /tmp/tone/run/xfstests/results//xfs/449.out.bad) --- tests/xfs/449.out 2022-04-27 21:06:27.310735151 +0800 +++ /tmp/tone/run/xfstests/results//xfs/449.out.bad 2022-05-05 17:37:09.940331814 +0800 @@ -1,2 +1,18 @@ QA output created by 449 +xfs_info: /dev/vdb2 contains a mounted filesystem + +fatal error -- couldn't initialize XFS library +--- /tmp/22413.mkfs 2022-05-05 17:37:09.824331561 +0800 ++++ /tmp/22413.info.dev 2022-05-05 17:37:09.871331663 +0800 +@@ -1,10 +0,0 @@ ... (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/449.out /tmp/tone/run/xfstests/results//xfs/449.out.bad' to see the entire diff) Ran: xfs/449 Failures: xfs/449 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="Anolis OS" VERSION="7.7" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="7.7" PRETTY_NAME="Anolis OS 7.7" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugs.openanolis.cn/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" 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="-fcommon" make make install 4.执行测试用例 ./check tests/xfs/449 Expected results: Additional info: xfsprogs-4.5.0-22.an7.x86_64
an8 上该用例不稳定,有成功有失败,an7测试10次均失败
(In reply to kangjiangbo from comment #1) > an8 上该用例不稳定,有成功有失败,an7测试10次均失败 an8上失败原因也不一样 xfs/449 - output mismatch (see /tmp/tone/run/xfstests/results//xfs/449.out.bad) --- tests/xfs/449.out 2022-04-27 02:24:19.395245455 +0800 +++ /tmp/tone/run/xfstests/results//xfs/449.out.bad 2022-04-27 05:45:40.385473384 +0800 @@ -1,2 +1,37 @@ QA output created by 449 +--- /tmp/1968037.mkfs 2022-04-27 05:45:40.173469274 +0800 ++++ /tmp/1968037.dbinfo 2022-04-27 05:45:40.181469429 +0800 +@@ -8,4 +8,3 @@ + log =internal log bsize=4096 blocks=45483, version=2 + = sectsz=512 sunit=0 blks, lazy-count=1 + realtime =none extsz=4096 blocks=0, rtextents=0 ... (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/449.out /tmp/tone/run/xfstests/results//xfs/449.out.bad' to see the entire diff)
(In reply to kangjiangbo from comment #2) > (In reply to kangjiangbo from comment #1) > > an8 上该用例不稳定,有成功有失败,an7测试10次均失败 > > an8上失败原因也不一样 > xfs/449 - output mismatch (see > /tmp/tone/run/xfstests/results//xfs/449.out.bad) > --- tests/xfs/449.out 2022-04-27 02:24:19.395245455 +0800 > +++ /tmp/tone/run/xfstests/results//xfs/449.out.bad 2022-04-27 > 05:45:40.385473384 +0800 > @@ -1,2 +1,37 @@ > QA output created by 449 > +--- /tmp/1968037.mkfs 2022-04-27 05:45:40.173469274 +0800 > ++++ /tmp/1968037.dbinfo 2022-04-27 05:45:40.181469429 +0800 > +@@ -8,4 +8,3 @@ > + log =internal log bsize=4096 blocks=45483, version=2 > + = sectsz=512 sunit=0 blks, > lazy-count=1 > + realtime =none extsz=4096 blocks=0, rtextents=0 > ... > (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/449.out > /tmp/tone/run/xfstests/results//xfs/449.out.bad' to see the entire diff) an8上是x86成功 arm失败
an8 x86 和 arm 的 xfsprogs/xfstests 版本是一致的吗? 按理说这个跟 arch 是没有关系的
(In reply to josephqi from comment #4) > an8 x86 和 arm 的 xfsprogs/xfstests 版本是一致的吗? > 按理说这个跟 arch 是没有关系的 ---对,an8 x86和arm xfsprogs版本不一样,是因为iclone之后默认的repo源不一样,x86和arm同repo源之后,更新xfsprogs包,an8 x86也会失败,报错日志是一样的
待更新 xfsprogs 版本,优先级降低
4.19.91-26.an8 测试 PASS: [root@localhost xfstests]# ./check xfs/449 FSTYP -- xfs (non-debug) PLATFORM -- Linux/x86_64 localhost 4.19.91-26.an8.x86_64 #1 SMP Tue May 24 13:10:09 CST 2022 MKFS_OPTIONS -- -f /dev/vdc2 MOUNT_OPTIONS -- /dev/vdc2 /mnt/scratch xfs/449 0s Ran: xfs/449 Passed all 1 tests [root@localhost xfstests]# rpm -qa | grep xfsprogs xfsprogs-5.0.0-10.0.3.an8.x86_64