Bug 3683 - [Anck 4.19][anolis8.6][x86_64][社区nightly][xfs文件系统]xfstests测试套下generic/603用例失败,pwrite实际与预期不符
Summary: [Anck 4.19][anolis8.6][x86_64][社区nightly][xfs文件系统]xfstests测试套下generic/603用例失败...
Status: RESOLVED BYDESIGN
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaoxiang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-10 15:53 UTC by zhixin01
Modified: 2023-01-11 17:46 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhixin01 alibaba_cloud_group 2023-01-10 15:53:26 UTC
Description of problem:
xfstests测试套下generic/603用例失败,pwrite实际与预期不符
执行日志如下:
generic/603       - output mismatch (see /tmp/tone/run/xfstests/results//generic/603.out.bad)
    --- tests/generic/603.out   2023-01-09 23:08:37.424712333 +0800
    +++ /tmp/tone/run/xfstests/results//generic/603.out.bad     2023-01-10 15:43:11.575506737 +0800
    @@ -20,7 +20,7 @@
     Write 225 blocks...
     Rewrite 250 blocks plus 1 byte, over the block softlimit...
     Try to write 1 one more block after grace...
    -pwrite: Disk quota exceeded
    +pwrite: No space left on device
     --- Test inode quota ---
     Create 2 more files, over the inode softlimit...
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/603.out /tmp/tone/run/xfstests/results//generic/603.out.bad'  to see the entire diff)
Ran: generic/603
Failures: generic/603
Failed 1 of 1 tests


How reproducible:
手动必现

Steps to Reproduce:
wipefs -a --force /dev/vdb1  
wipefs -a --force /dev/vdb2
wipefs -a --force /dev/vdb3 
wipefs -a --force /dev/vdb4

mkfs -t xfs -L OStest -q -f /dev/vdb1
mkfs -t xfs -L OStest -q -f /dev/vdb2
mkfs -t xfs -L OStest -q -f /dev/vdb3
mkfs -t xfs -L OStest -q -f /dev/vdb4

export FSTYP=xfs
export TEST_DIR=/fs/vdb1
export TEST_DEV=/dev/vdb1
export SCRATCH_MNT=/fs/vdb2
export SCRATCH_DEV=/dev/vdb2
mkdir -p /fs/vdb1 /fs/vdb2

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

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
4.19.91-261.git.98e6929d1498.an8.x86_64

# yum list xfsprogs
Last metadata expiration check: 3:47:08 ago on Tue 10 Jan 2023 12:05:18 PM CST.
Installed Packages
xfsprogs.x86_64                                           5.0.0-10.0.3.an8                                            @System
Comment 1 anolislw alibaba_cloud_group 2023-01-11 16:22:24 UTC
anolis8.6 ck-4.19 aarch64该case也存在同样问题

generic/603       - output mismatch (see /tmp/tone/run/xfstests/results//generic/603.out.bad)
    --- tests/generic/603.out	2023-01-10 23:47:26.391504257 +0800
    +++ /tmp/tone/run/xfstests/results//generic/603.out.bad	2023-01-11 01:22:19.153784003 +0800
    @@ -20,7 +20,7 @@
     Write 225 blocks...
     Rewrite 250 blocks plus 1 byte, over the block softlimit...
     Try to write 1 one more block after grace...
    -pwrite: Disk quota exceeded
    +pwrite: No space left on device
     --- Test inode quota ---
     Create 2 more files, over the inode softlimit...
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/603.out /tmp/tone/run/xfstests/results//generic/603.out.bad'  to see the entire diff)
generic/604        2s
Comment 2 gaoxiang alibaba_cloud_group 2023-01-11 17:46:23 UTC
https://bugzilla.openanolis.cn/show_bug.cgi?id=3682
https://bugzilla.openanolis.cn/show_bug.cgi?id=3669
https://bugzilla.openanolis.cn/show_bug.cgi?id=3664

per-type timers and per-user timer特性于v5.8合入, anck 5.10 已支持,anck 4.19 无计划支持此特性。