Description of problem: anolis8 aarch64物理机环境,xfstests ext4-2-overlay测试case:overlay/005执行失败. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 下载并编译安装内部xfstests mkfs -t ext4 -q -F /dev/nvme0n1p1 mkfs -t ext4 -q -F /dev/nvme0n1p2 mkdir /mnt/nvme0n1p1 mkdir /mnt/nvme0n1p2 #TEST_DEV/SCRATCH_DEV为文件系统所在的磁盘或分区 export TEST_DEV=/dev/nvme0n1p1 export SCRATCH_DEV=/dev/nvme0n1p2 export FSTYP=ext4 #TEST_DIR/SCRATCH_MNT表示待测试文件系统的挂载目录 export SCRATCH_MNT=/mnt/nvme0n1p2 export TEST_DIR=/mnt/nvme0n1p1 cd xfstests安装目录 ./check -overlay overlay/005 Actual results: [root@l57h15217 xfstests]# ./check -overlay overlay/005 mount: /mnt/nvme0n1p1: can't find in /etc/fstab. FSTYP -- overlay PLATFORM -- Linux/aarch64 l57h15217 4.19.91-732.git.205df27f7.an8.aarch64 #1 SMP Wed May 24 13:55:24 UTC 2023 MKFS_OPTIONS -- /mnt/nvme0n1p2 MOUNT_OPTIONS -- /mnt/nvme0n1p2 /mnt/nvme0n1p2/ovl-mnt umount: /mnt/nvme0n1p2: not mounted. mount: /mnt/nvme0n1p1: can't find in /etc/fstab. umount: /mnt/nvme0n1p1: not mounted. overlay/005 - output mismatch (see /tmp/tone/run/xfstests/results//overlay/005.out.bad) --- tests/overlay/005.out 2023-05-25 04:28:47.265331989 +0800 +++ /tmp/tone/run/xfstests/results//overlay/005.out.bad 2023-05-25 09:35:07.918586263 +0800 @@ -1,2 +1,7 @@ QA output created by 005 +mount: /mnt/nvme0n1p2: can't find in /etc/fstab. +mount: /mnt/nvme0n1p2/lowermnt: can't read superblock on /dev/loop0. +mount: /mnt/nvme0n1p2/uppermnt: can't read superblock on /dev/loop1. +umount: /mnt/nvme0n1p2/uppermnt: not mounted. +umount: /mnt/nvme0n1p2/lowermnt: not mounted. Silence is golden ... (Run 'diff -u /tmp/tone/run/xfstests/tests/overlay/005.out /tmp/tone/run/xfstests/results//overlay/005.out.bad' to see the entire diff) Ran: overlay/005 Failures: overlay/005 Failed 1 of 1 tests [root@l57h15217 xfstests]# diff -u /tmp/tone/run/xfstests/tests/overlay/005.out /tmp/tone/run/xfstests/results//overlay/005.out.bad --- /tmp/tone/run/xfstests/tests/overlay/005.out 2023-05-25 04:28:47.265331989 +0800 +++ /tmp/tone/run/xfstests/results//overlay/005.out.bad 2023-05-25 09:35:07.918586263 +0800 @@ -1,2 +1,7 @@ QA output created by 005 +mount: /mnt/nvme0n1p2: can't find in /etc/fstab. +mount: /mnt/nvme0n1p2/lowermnt: can't read superblock on /dev/loop0. +mount: /mnt/nvme0n1p2/uppermnt: can't read superblock on /dev/loop1. +umount: /mnt/nvme0n1p2/uppermnt: not mounted. +umount: /mnt/nvme0n1p2/lowermnt: not mounted. Silence is golden Expected results: case pass Additional info: [root@l57h15217 xfstests]# uname -r 4.19.91-732.git.205df27f7.an8.aarch64 [root@l57h15217 xfstests]# cat /etc/anolis-release Anolis OS release 8.8 [root@l57h15217 xfstests]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 378G 0 378G 0% /dev tmpfs 378G 0 378G 0% /dev/shm tmpfs 378G 4.2G 374G 2% /run tmpfs 378G 0 378G 0% /sys/fs/cgroup /dev/sda2 49G 29G 19G 61% / /dev/sda1 1022M 6.7M 1016M 1% /boot/efi tmpfs 76G 0 76G 0% /run/user/0 [root@l57h15217 xfstests]# free -g total used free shared buff/cache available Mem: 754 5 729 2 19 743 Swap: 1 1 0 [root@l57h15217 xfstests]# cat /proc/cmdline BOOT_IMAGE=(hd1,gpt2)/boot/vmlinuz-4.19.91-732.git.205df27f7.an8.aarch64 root=UUID=3fbce54d-0f7f-47cf-a94a-c4592d5d6057 ro console=tty0 console=ttyS0,115200 rd.driver.pre=ahci cgwb_v1 psi=1 slub_debug=FPZU kmemleak=on crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M [root@l57h15217 xfstests]# lsccpu -bash: lsccpu: command not found [root@l57h15217 xfstests]# lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 1 Core(s) per socket: 48 Socket(s): 2 NUMA node(s): 1 Vendor ID: HiSilicon BIOS Vendor ID: HiSilicon Model: 0 Model name: Kunpeng-920 BIOS Model name: HUAWEI Kunpeng 920 5250 Stepping: 0x1 CPU MHz: 2600.000 CPU max MHz: 2600.0000 CPU min MHz: 200.0000 BogoMIPS: 200.00 L1d cache: 64K L1i cache: 64K L2 cache: 512K L3 cache: 24576K NUMA node0 CPU(s): 0-95 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm [root@l57h15217 xfstests]#
请帮忙分析一下overlay的是否是一类问题
https://bugzilla.openanolis.cn/show_bug.cgi?id=2596 看错误类似, 确认下xfstests是否合入了 https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/commit/?id=e3774b281662d04a3cdab6c2eda2742a61854176
相似case: https://bugzilla.openanolis.cn/show_bug.cgi?id=2596 https://bugzilla.openanolis.cn/show_bug.cgi?id=4830 使用最新版内部xfstests即可解决,自测通过。