[问题描述]: xfstests测试套ext4文件格式执行ext4/053FAIL,mount 失败 [root@iZbp1c9jzchxjqive233ufZ xfstests]# ./check tests/ext4/053 FSTYP -- ext4 PLATFORM -- Linux/x86_64 iZbp1c9jzchxjqive233ufZ 6.6.25-2_rc1.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 15:05:18 CST 2024 MKFS_OPTIONS -- -F /dev/nvme1n1p2 MOUNT_OPTIONS -- -o acl,user_xattr -o context=system_u:object_r:root_t:s0 /dev/nvme1n1p2 /fs/nvme1n1p2 ext4/053 [failed, exit status 27]- output mismatch (see /root/tone/run/xfstests/results//ext4/053.out.bad) --- tests/ext4/053.out 2024-05-07 14:36:11.205396837 +0800 +++ /root/tone/run/xfstests/results//ext4/053.out.bad 2024-05-10 15:19:47.101685538 +0800 @@ -1,2 +1,29 @@ QA output created by 053 Silence is golden. +mounting ext2 "usrjquota=" (failed mount) FAILED +mounting ext2 "grpjquota=" (failed mount) FAILED +mounting ext2 "lazytime" checking "lazytime" (not found) FAILED +mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED +mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED ... (Run 'diff -u /root/tone/run/xfstests/tests/ext4/053.out /root/tone/run/xfstests/results//ext4/053.out.bad' to see the entire diff) Ran: ext4/053 Failures: ext4/053 Failed 1 of 1 tests [root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /root/tone/run/xfstests/results//ext4/053.out.bad QA output created by 053 Silence is golden. mounting ext2 "usrjquota=" (failed mount) FAILED mounting ext2 "grpjquota=" (failed mount) FAILED mounting ext2 "lazytime" checking "lazytime" (not found) FAILED mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED mounting ext2 "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" checking "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext2 "remount,grpjquota=" (failed mount) FAILED mounting ext2 "remount,usrjquota=" (failed mount) FAILED mounting ext2 "defaults" checking "defaults" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext3 "usrjquota=" (failed mount) FAILED mounting ext3 "grpjquota=" (failed mount) FAILED mounting ext3 "lazytime" checking "lazytime" (not found) FAILED mounting ext3 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED mounting ext3 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED mounting ext3 "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" checking "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext3 "remount,grpjquota=" (failed mount) FAILED mounting ext3 "remount,usrjquota=" (failed mount) FAILED mounting ext3 "defaults" checking "defaults" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext4 "usrjquota=" (failed mount) FAILED mounting ext4 "grpjquota=" (failed mount) FAILED mounting ext4 "lazytime" checking "lazytime" (not found) FAILED mounting ext4 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED mounting ext4 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED mounting ext4 "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" checking "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext4 "remount,grpjquota=" (failed mount) FAILED mounting ext4 "remount,usrjquota=" (failed mount) FAILED mounting ext4 "defaults" checking "defaults" remounting "grpjquota=,usrjquota=" (failed mount) FAILED [环境信息]: 机器类型:ECS [内核信息]: [root@iZbp1c9jzchxjqive233ufZ xfstests]# uname -r 6.6.25-2_rc1.an23.x86_64 [操作系统信息]: [root@iZbp1c9jzchxjqive233ufZ xfstests]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [文件系统] [root@iZbp1c9jzchxjqive233ufZ xfstests]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 7.6G 0 7.6G 0% /dev/shm tmpfs tmpfs 3.1G 592K 3.1G 1% /run /dev/nvme0n1p2 xfs 40G 5.1G 35G 13% / tmpfs tmpfs 7.6G 26M 7.6G 1% /tmp tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0 /dev/nvme1n1p2 ext4 19G 2.1M 18G 1% /fs/nvme1n1p2 /dev/nvme1n1p1 ext4 17G 2.1M 16G 1% /fs/nvme1n1p1 [问题发生概率]: 必现 [复现步骤]: 1、部署xfstests环境 2、部署测试环境 wipefs -a -f /dev/nvme1n1 wipefs -a -f /dev/nvme1n1 partprobe /dev/nvme1n1 parted -s /dev/nvme1n1 mklabel gpt mkpart primary 2048 20480 partprobe /dev/nvme1n1 parted -s /dev/nvme1n1 mkpart primary 20480 40960 mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F -q -F /dev/nvme1n1p2 mkdir -p /fs/nvme1n1p2 mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F -q -F /dev/nvme1n1p1 mkdir -p /fs/nvme1n1p1 mount /dev/nvme1n1p2 /fs/nvme1n1p2 mount /dev/nvme1n1p1 /fs/nvme1n1p1 export FSTYP=ext4 export TEST_DEV=/dev/nvme1n1p1 export SCRATCH_DEV=/dev/nvme1n1p2 export TEST_DIR=/fs/nvme1n1p1 export SCRATCH_MNT=/fs/nvme1n1p2 3、执行./check tests/ext4/053命令
在An23.1 6.6.25-2_rc1.an23.x86_64环境上ext4-2-bigalloc的ext4/053有相同问题 ext4/053 [failed, exit status 27]- output mismatch (see /root/tone/run/xfstests/results//ext4/053.out.bad) --- tests/ext4/053.out 2024-05-07 14:36:11.205396837 +0800 +++ /root/tone/run/xfstests/results//ext4/053.out.bad 2024-05-07 19:59:34.469041415 +0800 @@ -1,2 +1,29 @@ QA output created by 053 Silence is golden. +mounting ext2 "usrjquota=" (failed mount) FAILED +mounting ext2 "grpjquota=" (failed mount) FAILED +mounting ext2 "lazytime" checking "lazytime" (not found) FAILED +mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED +mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED ... (Run 'diff -u /root/tone/run/xfstests/tests/ext4/053.out /root/tone/run/xfstests/results//ext4/053.out.bad' to see the entire diff)
在6.6.25-2.2_rc1.an23.aarch64环境有相同问题 [root@4f7Lab15 xfstests]# uname -r 6.6.25-2.2_rc1.an23.aarch64 [root@4f7Lab15 xfstests]# cat /etc/os-release NAME="Anolis OS" VERSION="23.1" ID="anolis" VERSION_ID="23.1" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23.1" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [root@4f7Lab15 xfstests]# cat /root/xfstests/results//ext4/053.out.bad QA output created by 053 Silence is golden. mounting ext2 "usrjquota=" (failed mount) FAILED mounting ext2 "grpjquota=" (failed mount) FAILED mounting ext2 "lazytime" checking "lazytime" (not found) FAILED mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED mounting ext2 "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" checking "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext2 "remount,grpjquota=" (failed mount) FAILED mounting ext2 "remount,usrjquota=" (failed mount) FAILED mounting ext2 "defaults" checking "defaults" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext3 "usrjquota=" (failed mount) FAILED mounting ext3 "grpjquota=" (failed mount) FAILED mounting ext3 "lazytime" checking "lazytime" (not found) FAILED mounting ext3 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED mounting ext3 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED mounting ext3 "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" checking "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext3 "remount,grpjquota=" (failed mount) FAILED mounting ext3 "remount,usrjquota=" (failed mount) FAILED mounting ext3 "defaults" checking "defaults" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext4 "usrjquota=" (failed mount) FAILED mounting ext4 "grpjquota=" (failed mount) FAILED mounting ext4 "lazytime" checking "lazytime" (not found) FAILED mounting ext4 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED mounting ext4 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED mounting ext4 "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" checking "grpjquota=q.g,usrjquota=q.u,jqfmt=vfsv0" remounting "grpjquota=,usrjquota=" (failed mount) FAILED mounting ext4 "remount,grpjquota=" (failed mount) FAILED mounting ext4 "remount,usrjquota=" (failed mount) FAILED mounting ext4 "defaults" checking "defaults" remounting "grpjquota=,usrjquota=" (failed mount) FAILED
Anolis23.2 x86_64 6.6.25-2.2_rc1.an23.x86_64环境,xfstests中ext4/053也存在问题 ---------------------------------------------------------------------- [root@5f9Lab15 xfstests]# ./check ext4/053 FSTYP -- ext4 PLATFORM -- Linux/x86_64 5f9Lab15 6.6.25-2.2_rc1.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 21:26:10 CST 2024 MKFS_OPTIONS -- -F /dev/nvme0n1p2 MOUNT_OPTIONS -- -o acl,user_xattr /dev/nvme0n1p2 /mnt/nvme0n1p2 ext4/053 [failed, exit status 27]- output mismatch (see /tone/run/xfstests/results//ext4/053.out.bad) --- tests/ext4/053.out 2024-11-18 13:30:04.216122538 +0800 +++ /tone/run/xfstests/results//ext4/053.out.bad 2024-11-18 13:35:50.577110375 +0800 @@ -1,2 +1,29 @@ QA output created by 053 Silence is golden. +mounting ext2 "usrjquota=" (failed mount) FAILED +mounting ext2 "grpjquota=" (failed mount) FAILED +mounting ext2 "lazytime" checking "lazytime" (not found) FAILED +mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED +mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED ... (Run 'diff -u /tone/run/xfstests/tests/ext4/053.out /tone/run/xfstests/results//ext4/053.out.bad' to see the entire diff) Ran: ext4/053 Failures: ext4/053 Failed 1 of 1 tests [root@5f9Lab15 xfstests]# ./check ext4/053^C [root@5f9Lab15 xfstests]# una
非 6.6.25-002 新增问题,暂不修复
ecs环境,6.6.88-cbp.git.8932083f9.an23.aarch64内核,xfstests测试ext4文件系统该用例存在同样的问题,在此记录下,日志如下: ext4/053 [failed, exit status 27]- output mismatch (see /var/tmp/tone/run/xfstests/results//ext4/053.out.bad) --- tests/ext4/053.out 2025-06-30 14:49:09.745130115 +0800 +++ /var/tmp/tone/run/xfstests/results//ext4/053.out.bad 2025-06-30 14:52:04.173698387 +0800 @@ -1,2 +1,29 @@ QA output created by 053 Silence is golden. +mounting ext2 "usrjquota=" (failed mount) FAILED +mounting ext2 "grpjquota=" (failed mount) FAILED +mounting ext2 "lazytime" checking "lazytime" (not found) FAILED +mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED +mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED ... (Run 'diff -u /var/tmp/tone/run/xfstests/tests/ext4/053.out /var/tmp/tone/run/xfstests/results//ext4/053.out.bad' to see the entire diff)
6.6.88 x86环境,xfstests测试ext4文件系统该用例存在同样的问题 # ./check ext4/053 FSTYP -- ext4 PLATFORM -- Linux/x86_64 iZbp14mzaknw3bqe6ujc9zZ 6.6.88-cbp.git.3ccff695e.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 3 22:30:35 CST 2025 MKFS_OPTIONS -- -F /dev/vdb2 MOUNT_OPTIONS -- -o acl,user_xattr -o context=system_u:object_r:root_t:s0 /dev/vdb2 /fs/vdb2 ext4/053 [failed, exit status 27]- output mismatch (see /tmp/tone/run/xfstests/results//ext4/053.out.bad) --- tests/ext4/053.out 2025-07-04 08:30:08.635372554 +0800 +++ /tmp/tone/run/xfstests/results//ext4/053.out.bad 2025-07-04 11:44:25.675804264 +0800 @@ -1,2 +1,29 @@ QA output created by 053 Silence is golden. +mounting ext2 "usrjquota=" (failed mount) FAILED +mounting ext2 "grpjquota=" (failed mount) FAILED +mounting ext2 "lazytime" checking "lazytime" (not found) FAILED +mounting ext2 "grpjquota=q.g,jqfmt=vfsv0" checking "grpjquota=q.g,jqfmt=vfsv0" remounting "grpjquota=" (failed mount) FAILED +mounting ext2 "usrjquota=q.u,jqfmt=vfsv0" checking "usrjquota=q.u,jqfmt=vfsv0" remounting "usrjquota=" (failed mount) FAILED ... (Run 'diff -u /tmp/tone/run/xfstests/tests/ext4/053.out /tmp/tone/run/xfstests/results//ext4/053.out.bad' to see the entire diff) Ran: ext4/053 Failures: ext4/053 Failed 1 of 1 tests # uname -r 6.6.88-cbp.git.3ccff695e.an23.x86_64 # cat /etc/anolis-release Anolis OS release 23