[问题描述]: xfstests测试套ext4文件格式执行xfs/597测试项FAIL HINT: You _MAY_ be missing kernel fix: a9248538facc xfs: stabilize the dirent name transformation function used for ascii-ci dir hash computation HINT: You _MAY_ be missing kernel fix: 9dceccc5822f xfs: use the directory name hash function for dir scrubbing [root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check tests/xfs/597 FSTYP -- xfs (non-debug) PLATFORM -- Linux/aarch64 iZbp143ti4ccpaufkzata7Z 6.6.25-2_rc1.an23.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 15:02:38 CST 2024 MKFS_OPTIONS -- -f /dev/nvme1n1p2 MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/nvme1n1p2 /fs/nvme1n1p2 xfs/597 _check_xfs_filesystem: filesystem on /dev/nvme1n1p2 is inconsistent (r) (see /root/tone/run/xfstests/results//xfs/597.full for details) HINT: You _MAY_ be missing kernel fix: a9248538facc xfs: stabilize the dirent name transformation function used for ascii-ci dir hash computation HINT: You _MAY_ be missing kernel fix: 9dceccc5822f xfs: use the directory name hash function for dir scrubbing Ran: xfs/597 Failures: xfs/597 Failed 1 of 1 tests [环境信息]: 机器类型:ECS [内核信息]: [root@iZbp143ti4ccpaufkzata7Z xfstests]# uname -r 6.6.25-2_rc1.an23.aarch64 [操作系统信息]: [root@iZbp143ti4ccpaufkzata7Z 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@iZbp143ti4ccpaufkzata7Z xfstests]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 16G 0 16G 0% /dev/shm tmpfs tmpfs 6.1G 768K 6.1G 1% /run efivarfs efivarfs 256K 17K 240K 7% /sys/firmware/efi/efivars /dev/nvme0n1p2 xfs 40G 11G 30G 27% / tmpfs tmpfs 16G 0 16G 0% /tmp /dev/nvme0n1p1 vfat 500M 6.5M 494M 2% /boot/efi tmpfs tmpfs 3.1G 0 3.1G 0% /run/user/0 [问题发生概率]: 必现 [复现步骤]: 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 xfs -L OStest -q -f /dev/nvme1n1p2 mkfs -t xfs -L OStest -q -f /dev/nvme1n1p1 mount -o inode64 /dev/nvme1n1p2 /fs/nvme1n1p2 mount -o inode64 /dev/nvme1n1p1 /fs/nvme1n1p1 export FSTYP=xfs export TEST_DEV=/dev/nvme1n1p1 export SCRATCH_DEV=/dev/nvme1n1p2 export TEST_DIR=/fs/nvme1n1p1 export SCRATCH_MNT=/fs/nvme1n1p2 3、执行测试 ./check tests/xfs/597
An23.1 ANCK-6.6.25-2内核arm环境的xfstests测试套xfs格式xfs/598项执行Fail,问题类似 [root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check tests/xfs/598 FSTYP -- xfs (non-debug) PLATFORM -- Linux/aarch64 iZbp143ti4ccpaufkzata7Z 6.6.25-2_rc1.an23.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 11 15:02:38 CST 2024 MKFS_OPTIONS -- -f /dev/nvme1n1p2 MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 /dev/nvme1n1p2 /fs/nvme1n1p2 xfs/598 [failed, exit status 1]- output mismatch (see /root/tone/run/xfstests/results//xfs/598.out.bad) --- tests/xfs/598.out 2024-04-19 15:32:14.867466615 +0800 +++ /root/tone/run/xfstests/results//xfs/598.out.bad 2024-05-09 17:23:00.763717632 +0800 @@ -4,6 +4,5 @@ metadump o metadump ao mdrestore -mdrestore a -mdrestore o -mdrestore ao +_check_xfs_filesystem: filesystem on /dev/nvme1n1p2 is inconsistent (r) ... (Run 'diff -u /root/tone/run/xfstests/tests/xfs/598.out /root/tone/run/xfstests/results//xfs/598.out.bad' to see the entire diff) HINT: You _MAY_ be missing xfsprogs fix: 10a01bcd xfs_db: fix metadump name obfuscation for ascii-ci filesystems HINT: You _MAY_ be missing kernel fix: a9248538facc xfs: stabilize the dirent name transformation function used for ascii-ci dir hash computation HINT: You _MAY_ be missing kernel fix: 9dceccc5822f xfs: use the directory name hash function for dir scrubbing Ran: xfs/598 Failures: xfs/598 Failed 1 of 1 tests ---多出内容--- [root@iZbp143ti4ccpaufkzata7Z xfstests]# cat /root/tone/run/xfstests/results//xfs/598.out.bad _check_xfs_filesystem: filesystem on /dev/nvme1n1p2 is inconsistent (r) (see /root/tone/run/xfstests/results//xfs/598.full for details)