[问题描述]: xfstests测试套ext4-nfsv4.2-2文件格式执行generic/020测试项FAIL [root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check tests/generic/020 TEST_DEV=localhost:/fs/nvme1n1p1 is mounted but not on TEST_DIR=/nfs/nvme1n1p2 - aborting Already mounted result: localhost:/fs/nvme1n1p1 /nfs/nvme1n1p1 [root@iZbp143ti4ccpaufkzata7Z xfstests]# umount -f -l /nfs/nvme1n1p1 /nfs/nvme1n1p2 /fs/nvme1n1p1 /fs/nvme1n1p2 [root@iZbp143ti4ccpaufkzata7Z xfstests]# ./check tests/generic/020 FSTYP -- nfs 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 -- localhost:/fs/nvme1n1p2 MOUNT_OPTIONS -- -o vers=4.2 -o context=system_u:object_r:root_t:s0 localhost:/fs/nvme1n1p2 /nfs/nvme1n1p2 generic/020 2s ... - output mismatch (see /root/tone/run/xfstests/results//generic/020.out.bad) --- tests/generic/020.out 2024-04-19 15:32:08.843576401 +0800 +++ /root/tone/run/xfstests/results//generic/020.out.bad 2024-05-10 11:41:16.656438069 +0800 @@ -39,27 +39,6 @@ user.snrub="fish2\012" *** add lots of attributes -*** check - *** MAX_ATTRS attribute(s) -*** remove lots of attributes - *** print attributes ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/020.out /root/tone/run/xfstests/results//generic/020.out.bad' to see the entire diff) Ran: generic/020 Failures: generic/020 Failed 1 of 1 tests ————————异常输出 QA output created by 020 *** list non-existant file *** print attributes getfattr: <TESTFILE>: No such file or directory !!! error return *** list empty file *** print attributes *** query non-existant attribute attr_get: No data available Could not get "nonexistant" for <TESTFILE> *** one attribute Attribute "fish" set to a 5 byte value for <TESTFILE>: fish *** add lots of attributes attr_set: No space left on device Could not set "attribute_109" for /nfs/nvme1n1p2/attribute_2155 !!! failed to add "attribute_109" [环境信息]: 机器类型: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、设置以下测试环境 dmsetup remove_all wipefs -a --force /dev/nvme1n1p1 wipefs -a --force /dev/nvme1n1p2 mkfs -t ext4 -q -F /dev/nvme1n1p1 mkfs -t ext4 -q -F /dev/nvme1n1p2 mkdir -p /fs/nvme1n1p2 mkdir -p /fs/nvme1n1p1 mount -t ext4 /dev/nvme1n1p1 /fs/nvme1n1p1/ mount -t ext4 /dev/nvme1n1p2 /fs/nvme1n1p2 mkdir -p /export mount -t tmpfs nfsv4_root_export /export mkdir -p /export/fs/nvme1n1p1 mount --bind /fs/nvme1n1p1/ /export/fs/nvme1n1p1 mkdir -p /export//fs/nvme1n1p2 mount --bind /fs/nvme1n1p2/ /export/fs/nvme1n1p2/ echo '/export *(fsid=0,rw,no_subtree_check,no_root_squash)' > /etc/exports echo '/export/fs/nvme1n1p1 *(rw,no_subtree_check,no_root_squash)' >> /etc/exports echo '/export/fs/nvme1n1p2 *(rw,no_subtree_check,no_root_squash)' >> /etc/exports systemctl restart rpcbind systemctl restart nfs-server exportfs -r mkdir -p /nfs/nvme1n1p1 mount -t nfs -o vers=4.2 localhost:/fs/nvme1n1p1 /nfs/nvme1n1p1/ mkdir -p /nfs/nvme1n1p2 mount -t nfs -o vers=4.2 localhost:/fs/nvme1n1p2 /nfs/nvme1n1p2/ umount -f -l /nfs/nvme1n1p1 /nfs/nvme1n1p2 /fs/nvme1n1p1 /fs/nvme1n1p2 export TEST_DIR=/nfs/nvme1n1p1/ export TEST_DEV=/dev/nvme1n1p1 export nfsvers=4.2 export FSTYP=nfs export SCRATCH_MNT=/fs/scratch mkdir /fs/scratch -p chmod 755 -R /fs export SCRATCH_DEV=/dev/nvme1n1p2 export TEST_DIR=/nfs/nvme1n1p2/ export SCRATCH_MNT=/nfs/nvme1n1p2/ export TEST_DEV=localhost:/fs/nvme1n1p1 export SCRATCH_DEV=localhost:/fs/nvme1n1p2 export 'TEST_FS_MOUNT_OPTS=-o vers=4.2' export 'MOUNT_OPTIONS=-o vers=4.2' chmod 755 -R /nfs 3、执行测试命令 ./check tests/generic/020
An23.1 6.6.25-2_rc1.an23.x86_64环境有相同问题 generic/020 1s ... - output mismatch (see /root/tone/run/xfstests/results//generic/020.out.bad) --- tests/generic/020.out 2024-05-07 14:36:13.172413810 +0800 +++ /root/tone/run/xfstests/results//generic/020.out.bad 2024-05-08 01:09:12.025708649 +0800 @@ -39,27 +39,6 @@ user.snrub="fish2\012" *** add lots of attributes -*** check - *** MAX_ATTRS attribute(s) -*** remove lots of attributes - *** print attributes ... (Run 'diff -u /root/tone/run/xfstests/tests/generic/020.out /root/tone/run/xfstests/results//generic/020.out.bad' to see the entire diff)
alinux3 6.6.71-3_rc1.al8.aarch64环境下,xfstests测试套ext4-nfsv4.2-2文件格式执行generic/020测试项也有同样的失败 generic/020 - output mismatch (see /var/tmp/tone/run/xfstests/results//generic/020.out.bad) --- tests/generic/020.out 2025-03-04 13:43:35.837743684 +0800 +++ /var/tmp/tone/run/xfstests/results//generic/020.out.bad 2025-03-04 17:06:01.062997824 +0800 @@ -39,27 +39,6 @@ user.snrub="fish2\012" *** add lots of attributes -*** check - *** MAX_ATTRS attribute(s) -*** remove lots of attributes - *** print attributes ... (Run 'diff -u /var/tmp/tone/run/xfstests/tests/generic/020.out /var/tmp/tone/run/xfstests/results//generic/020.out.bad' to see the entire diff) Ran: generic/020 Failures: generic/020 Failed 1 of 1 tests #uname -r 6.6.71-3_rc1.al8.aarch64 #cat /etc/os-release NAME="Alibaba Cloud Linux" VERSION="3 (Soaring Falcon)" ID="alinux" ID_LIKE="rhel fedora centos anolis" VERSION_ID="3" UPDATE_ID="10" PLATFORM_ID="platform:al8" PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)" ANSI_COLOR="0;31" HOME_URL="https://www.aliyun.com/"
alinux3 6.6.71-3_rc1.al8.x86_64内核的环境上,ext4-nfsv4.2-2文件系统,也存在同样的问题: generic/020 2s ... - output mismatch (see /var/tmp/tone/run/xfstests/results//generic/020.out.bad) --- tests/generic/020.out 2025-03-03 23:23:36.349666548 +0800 +++ /var/tmp/tone/run/xfstests/results//generic/020.out.bad 2025-03-06 13:50:30.904900525 +0800 @@ -39,27 +39,6 @@ user.snrub="fish2\012" *** add lots of attributes -*** check - *** MAX_ATTRS attribute(s) -*** remove lots of attributes - *** print attributes ... (Run 'diff -u /var/tmp/tone/run/xfstests/tests/generic/020.out /var/tmp/tone/run/xfstests/results//generic/020.out.bad' to see the entire diff)