Bug 3644 - [Anck 5.10][aarch64][社区nightly][xfs文件系统]xfstests测试套下generic/373,generic/374用例执行失败
Summary: [Anck 5.10][aarch64][社区nightly][xfs文件系统]xfstests测试套下generic/373,generic/374用例...
Status: RESOLVED DUPLICATE of bug 1438
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-5.10 (show other bugs) kernel - anck-5.10
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaoxiang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 14:14 UTC by yunhe123
Modified: 2023-01-10 14:04 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunhe123 alibaba_cloud_group 2023-01-06 14:14:23 UTC
Description of problem:
xfstests测试套下generic/373用例执行失败

用例执行日志:
# ./check tests/generic/373
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/aarch64 qibo-anolis8-nightly-func-arm-4 5.10.134-259.git.a5a0ae7bf175.an8.aarch64 #1 SMP Thu Jan 5 22:17:22 CST 2023
MKFS_OPTIONS  -- -f /dev/vdb2
MOUNT_OPTIONS -- /dev/vdb2 /fs/vdb2

generic/373       - output mismatch (see /tmp/tone/run/xfstests/results//generic/373.out.bad)
    --- tests/generic/373.out   2023-01-06 00:45:32.221963781 +0800
    +++ /tmp/tone/run/xfstests/results//generic/373.out.bad     2023-01-06 14:09:21.996316065 +0800
    @@ -3,7 +3,8 @@
     Mount otherdir
     Create file
     Reflink one file to another
    +cp: failed to clone 'OTHER_DIR/test-373/otherfile' from 'SCRATCH_MNT/test-373/file': Invalid cross-device link
     Check output
     2d61aa54b58c2e94403fb092c3dbc027  SCRATCH_MNT/test-373/file
    -2d61aa54b58c2e94403fb092c3dbc027  OTHER_DIR/test-373/otherfile
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/373.out /tmp/tone/run/xfstests/results//generic/373.out.bad'  to see the entire diff)
Ran: generic/373
Failures: generic/373
Failed 1 of 1 tests

# diff -u /tmp/tone/run/xfstests/tests/generic/373.out /tmp/tone/run/xfstests/results//generic/373.out.bad
--- /tmp/tone/run/xfstests/tests/generic/373.out        2023-01-06 00:45:32.221963781 +0800
+++ /tmp/tone/run/xfstests/results//generic/373.out.bad 2023-01-06 14:09:21.996316065 +0800
@@ -3,7 +3,8 @@
 Mount otherdir
 Create file
 Reflink one file to another
+cp: failed to clone 'OTHER_DIR/test-373/otherfile' from 'SCRATCH_MNT/test-373/file': Invalid cross-device link
 Check output
 2d61aa54b58c2e94403fb092c3dbc027  SCRATCH_MNT/test-373/file
-2d61aa54b58c2e94403fb092c3dbc027  OTHER_DIR/test-373/otherfile
+d41d8cd98f00b204e9800998ecf8427e  OTHER_DIR/test-373/otherfile
 Unmount otherdir



generic/374看起来也存在同样的问题:
# ./check tests/generic/374
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/aarch64 qibo-anolis8-nightly-func-arm-4 5.10.134-259.git.a5a0ae7bf175.an8.aarch64 #1 SMP Thu Jan 5 22:17:22 CST 2023
MKFS_OPTIONS  -- -f /dev/vdb2
MOUNT_OPTIONS -- /dev/vdb2 /fs/vdb2

generic/374       - output mismatch (see /tmp/tone/run/xfstests/results//generic/374.out.bad)
    --- tests/generic/374.out   2023-01-06 00:45:32.909965154 +0800
    +++ /tmp/tone/run/xfstests/results//generic/374.out.bad     2023-01-06 14:13:34.052808978 +0800
    @@ -3,8 +3,7 @@
     Mount otherdir
     Create file
     Dedupe one file to another
    -deduped 65536/65536 bytes at offset 0
    -XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    +XFS_IOC_FILE_EXTENT_SAME: Invalid cross-device link
     Check output
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/374.out /tmp/tone/run/xfstests/results//generic/374.out.bad'  to see the entire diff)
Ran: generic/374
Failures: generic/374
Failed 1 of 1 tests

[root@qibo-anolis8-nightly-func-arm-4 xfstests]# diff -u /tmp/tone/run/xfstests/tests/generic/374.out /tmp/tone/run/xfstests/results//generic/374.out.bad
--- /tmp/tone/run/xfstests/tests/generic/374.out        2023-01-06 00:45:32.909965154 +0800
+++ /tmp/tone/run/xfstests/results//generic/374.out.bad 2023-01-06 14:13:34.052808978 +0800
@@ -3,8 +3,7 @@
 Mount otherdir
 Create file
 Dedupe one file to another
-deduped 65536/65536 bytes at offset 0
-XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+XFS_IOC_FILE_EXTENT_SAME: Invalid cross-device link
 Check output
 2d61aa54b58c2e94403fb092c3dbc027  SCRATCH_MNT/test-374/file
 2d61aa54b58c2e94403fb092c3dbc027  OTHER_DIR/test-374/otherfile





Steps to Reproduce:
mkfs -t ext4 -L tone -q -F  -q -F /dev/vdb1
mkfs -t ext4 -L tone -q -F  -q -F /dev/vdb2
mkfs -t ext4 -L tone -q -F  -q -F /dev/vdb3
mkfs -t ext4 -L tone -q -F  -q -F /dev/vdb4
export FSTYP=xfs
export TEST_DEV=/dev/vdb1
export SCRATCH_DEV=/dev/vdb2
export TEST_LOGDEV =/dev/vdb3
export SCRATCH_LOGDEV=/dev/vdb4
mkdir -p /fs/vdb1 /fs/vdb2
export TEST_DIR=/fs/vdb1
export SCRATCH_MNT=/fs/vdb2

git clone --branch anck-4.19 https://gitee.com/anolis/xfstests.git
export CFLAGS="-fcommon"
make configure
./configure
make && make install
./check generic/687

Actual results:
用例执行通过

Expected results:
用例执行失败

Additional info:
版本信息:
cat /etc/os-release
NAME="Anolis OS"
VERSION="8.6"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.6"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.6"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

内核信息:
# uname -r
5.10.134-259.git.a5a0ae7bf175.an8.aarch64

内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       262Mi        14Gi        11Mi       754Mi        14Gi
Swap:            0B          0B          0B

cpu信息:
# lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per cluster: 4
Socket(s):           1
Cluster(s):          1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               1
Model name:          Neoverse-N1
BIOS Model name:     virt-rhel7.6.0
Stepping:            r3p1
BogoMIPS:            50.00
NUMA node0 CPU(s):   0-3
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
Comment 1 zhixin01 alibaba_cloud_group 2023-01-06 15:27:35 UTC
[Anck 4.19][x86_64][anolis8.6][nightly]xfstests测试套下generic/373,generic/374也有同样失败
generic/373       - output mismatch (see /tmp/tone/run/xfstests/results//generic/373.out.bad)
    --- tests/generic/373.out   2023-01-06 13:23:22.444959281 +0800
    +++ /tmp/tone/run/xfstests/results//generic/373.out.bad     2023-01-06 15:22:03.846094618 +0800
    @@ -3,7 +3,8 @@
     Mount otherdir
     Create file
     Reflink one file to another
    +cp: failed to clone 'OTHER_DIR/test-373/otherfile' from 'SCRATCH_MNT/test-373/file': Invalid cross-device link
     Check output
     2d61aa54b58c2e94403fb092c3dbc027  SCRATCH_MNT/test-373/file
    -2d61aa54b58c2e94403fb092c3dbc027  OTHER_DIR/test-373/otherfile
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/373.out /tmp/tone/run/xfstests/results//generic/373.out.bad'  to see the entire diff)
Ran: generic/373
Failures: generic/373
Failed 1 of 1 tests

# diff -u /tmp/tone/run/xfstests/tests/generic/373.out /tmp/tone/run/xfstests/results//generic/373.out.bad
--- /tmp/tone/run/xfstests/tests/generic/373.out        2023-01-06 13:23:22.444959281 +0800
+++ /tmp/tone/run/xfstests/results//generic/373.out.bad 2023-01-06 15:22:03.846094618 +0800
@@ -3,7 +3,8 @@
 Mount otherdir
 Create file
 Reflink one file to another
+cp: failed to clone 'OTHER_DIR/test-373/otherfile' from 'SCRATCH_MNT/test-373/file': Invalid cross-device link
 Check output
 2d61aa54b58c2e94403fb092c3dbc027  SCRATCH_MNT/test-373/file
-2d61aa54b58c2e94403fb092c3dbc027  OTHER_DIR/test-373/otherfile
+d41d8cd98f00b204e9800998ecf8427e  OTHER_DIR/test-373/otherfile
 Unmount otherdir


generic/374       - output mismatch (see /tmp/tone/run/xfstests/results//generic/374.out.bad)
    --- tests/generic/374.out   2023-01-06 13:23:23.006966746 +0800
    +++ /tmp/tone/run/xfstests/results//generic/374.out.bad     2023-01-06 15:25:12.725698912 +0800
    @@ -3,8 +3,7 @@
     Mount otherdir
     Create file
     Dedupe one file to another
    -deduped 65536/65536 bytes at offset 0
    -XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    +XFS_IOC_FILE_EXTENT_SAME: Invalid cross-device link
     Check output
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/374.out /tmp/tone/run/xfstests/results//generic/374.out.bad'  to see the entire diff)
Ran: generic/374
Failures: generic/374
Failed 1 of 1 tests

[tone]Error: The return code of run() in run.sh is not 0
generic/374: Failed
Test running: Done

# diff -u /tmp/tone/run/xfstests/tests/generic/374.out /tmp/tone/run/xfstests/results//generic/374.out.bad
--- /tmp/tone/run/xfstests/tests/generic/374.out        2023-01-06 13:23:23.006966746 +0800
+++ /tmp/tone/run/xfstests/results//generic/374.out.bad 2023-01-06 15:25:12.725698912 +0800
@@ -3,8 +3,7 @@
 Mount otherdir
 Create file
 Dedupe one file to another
-deduped 65536/65536 bytes at offset 0
-XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+XFS_IOC_FILE_EXTENT_SAME: Invalid cross-device link
 Check output
 2d61aa54b58c2e94403fb092c3dbc027  SCRATCH_MNT/test-374/file
 2d61aa54b58c2e94403fb092c3dbc027  OTHER_DIR/test-374/otherfile

# uname -r
4.19.91-257.git.dc94d8113a48.an8.x86_64
Comment 2 yunhe123 alibaba_cloud_group 2023-01-10 14:04:17 UTC
之前有提过bug单:https://bugzilla.openanolis.cn/show_bug.cgi?id=1438https://bugzilla.openanolis.cn/show_bug.cgi?id=1439,
原单结论:用例匹配问题,特性暂不移植,先遗留,本单按重复单关掉

*** This bug has been marked as a duplicate of bug 1438 ***