Description of problem: xfs文件系统,xfstests下generic/586 sbuf.st_size=4096, expected 8192 x86和arm均存在该问题 失败几率:100% 测试日志: # ./check tests/generic/586\ > FSTYP -- xfs (non-debug) PLATFORM -- Linux/aarch64 iZ2zebfu2pfe96wy4xb5lrZ 4.19.91-26_rc1.an7.aarch64 #1 SMP Mon Apr 25 17:30:58 CST 2022 MKFS_OPTIONS -- -f -bsize=4096 /dev/vdb2 MOUNT_OPTIONS -- /dev/vdb2 /fs/scratch generic/586 4s ... - output mismatch (see /tmp/tone/run/xfstests/results//generic/586.out.bad) --- tests/generic/586.out 2022-04-27 19:46:07.135828137 +0800 +++ /tmp/tone/run/xfstests/results//generic/586.out.bad 2022-05-05 16:19:56.418744933 +0800 @@ -1,2 +1,97 @@ QA output created by 586 +[0]: sbuf.st_size=4096, expected 8192. +[1]: sbuf.st_size=4096, expected 8192. +[2]: sbuf.st_size=4096, expected 8192. +[3]: sbuf.st_size=4096, expected 8192. +[4]: sbuf.st_size=4096, expected 8192. +[5]: sbuf.st_size=4096, expected 8192. ... (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/586.out /tmp/tone/run/xfstests/results//generic/586.out.bad' to see the entire diff) Ran: generic/586 Failures: generic/586 Failed 1 of 1 tests 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/generic/568 Expected results: Additional info: xfsprogs-4.5.0-22.an7.x86_64
an8无此用例
an8上同样报错
upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=249bd9087a5264d2b8a974081870e2e27671b4dc
Before the patch applied: FSTYP -- xfs (debug) PLATFORM -- Linux/x86_64 e18g06460 4.19.91+ #2 SMP Thu May 5 19:40:33 CST 2022 MKFS_OPTIONS -- -f /dev/loop1 MOUNT_OPTIONS -- /dev/loop1 /mnt/scratch_mnt generic/586 4s ... - output mismatch (see /root/xfstests-dev/results//generic/586.out.bad) --- tests/generic/586.out 2022-02-07 09:07:20.609230092 +0000 +++ /root/xfstests-dev/results//generic/586.out.bad 2022-05-05 11:41:36.325597948 +0000 @@ -1,2 +1,102 @@ QA output created by 586 +[0]: sbuf.st_size=4096, expected 8192. +[1]: sbuf.st_size=4096, expected 8192. +[2]: sbuf.st_size=4096, expected 8192. +[3]: sbuf.st_size=4096, expected 8192. +[4]: sbuf.st_size=4096, expected 8192. +[5]: sbuf.st_size=4096, expected 8192. ... (Run 'diff -u /root/xfstests-dev/tests/generic/586.out /root/xfstests-dev/results//generic/586.out.bad' to see the entire diff) Ran: generic/586 Failures: generic/586 Failed 1 of 1 tests After the patch applied: FSTYP -- xfs (debug) PLATFORM -- Linux/x86_64 e18g06460 4.19.91+ #1 SMP Thu May 5 19:33:30 CST 2022 MKFS_OPTIONS -- -f /dev/loop1 MOUNT_OPTIONS -- /dev/loop1 /mnt/scratch_mnt generic/586 4s Ran: generic/586 Passed all 1 tests
Fixed as https://gitee.com/anolis/cloud-kernel/pulls/315
补充修复补丁: https://gitee.com/anolis/cloud-kernel/pulls/356
RC3 测试通过