Description of problem: xfs文件系统,xfstests下xfs/242 -2f7a72b9ca9923b610514a11a45a80c9 x86和arm均存在该问题 RC1测试成功 xfsprogs-4.5.0-22.an7 xfsprogs-4.19.0-5.0.1.an7 均失败 失败几率:100% 测试日志: # ./check tests/xfs/242 FSTYP -- xfs (non-debug) PLATFORM -- Linux/aarch64 iZ2zebfu2pfe96wy4xb5lrZ 4.19.91-26_rc3.an7.aarch64 #1 SMP Tue May 10 20:56:42 CST 2022 MKFS_OPTIONS -- -f -bsize=4096 /dev/vdb2 MOUNT_OPTIONS -- /dev/vdb2 /fs/scratch xfs/242 [failed, exit status 1]- output mismatch (see /tmp/tone/run/xfstests/results//xfs/242.out.bad) --- tests/xfs/242.out 2022-05-11 18:46:00.000000000 +0800 +++ /tmp/tone/run/xfstests/results//xfs/242.out.bad 2022-05-17 14:47:48.389531257 +0800 @@ -8,7 +8,7 @@ 0: [0..127]: data 1: [128..383]: unwritten 2: [384..639]: data -2f7a72b9ca9923b610514a11a45a80c9 +839c84ca686e575434d32785b19ad415 3. into unwritten space 0: [0..639]: unwritten ... (Run 'diff -u /tmp/tone/run/xfstests/tests/xfs/242.out /tmp/tone/run/xfstests/results//xfs/242.out.bad' to see the entire diff) Ran: xfs/242 Failures: xfs/242 Failed 1 of 1 tests Version-Release number of selected component (if applicable): 4.19.91-26_rc3.an7.aarch64 4.19.91-26_rc3.an7.x86_64 # 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/242 Expected results: Additional info: x86和arm均存在该问题 RC1测试成功 xfsprogs-4.5.0-22.an7 xfsprogs-4.19.0-5.0.1.an7 均失败
请使用最新的 devel-4.19 内核测试
[root@localhost xfstests]# ./check xfs/242 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/242 1s Ran: xfs/242 Passed all 1 tests [root@localhost xfstests]# rpm -qa | grep xfsprogs xfsprogs-5.0.0-10.0.3.an8.x86_64 xfsprogs-devel-5.0.0-10.0.3.an8.x86_64