/ 详情

[20-03-sp1][kernel][btrfs][ltp] 20.03-sp1 版本内核,放开btrfs相关配置后,执行ltp测试失败

Backlog
Bug
Opened this issue  
2021-03-02 15:39

【标题描述】20.03-sp1 版本内核,放开btrfs相关配置后,执行ltp测试失败

【环境信息】

硬件信息:

kvm vm

软件信息:
[root@localhost ltp]# cat /etc/os-release 
NAME="openEuler"
VERSION="20.03 (LTS-SP1)"
ID="openEuler"
VERSION_ID="20.03"
PRETTY_NAME="openEuler 20.03 (LTS-SP1)"
ANSI_COLOR="0;31"

[root@localhost ltp]# uname -m
aarch64
[root@localhost ltp]# uname -r
4.19.90-2012.5.0.0054.oe1.aarch64

【问题复现步骤】

  1. 修改kernel 配置
--- a/arch/arm64/configs/openeuler_defconfig
+++ b/arch/arm64/configs/openeuler_defconfig
@@ -5142,7 +5142,8 @@ CONFIG_XFS_POSIX_ACL=y
 # CONFIG_XFS_DEBUG is not set
 # CONFIG_GFS2_FS is not set
 # CONFIG_OCFS2_FS is not set
-# CONFIG_BTRFS_FS is not set
+CONFIG_BTRFS_FS=y
+CONFIG_BTRFS_FS_POSIX_ACL=y

--- a/arch/x86/configs/openeuler_defconfig
+++ b/arch/x86/configs/openeuler_defconfig
@@ -6618,7 +6618,8 @@ CONFIG_XFS_POSIX_ACL=y
 CONFIG_GFS2_FS=m
 CONFIG_GFS2_FS_LOCKING_DLM=y
 # CONFIG_OCFS2_FS is not set
-# CONFIG_BTRFS_FS is not set
+CONFIG_BTRFS_FS=y
+CONFIG_BTRFS_FS_POSIX_ACL=y

2.重新编译内核
3. 执行ltp测试,测试命令为 ./runltp -f syscalls -s fallocate06
【预期结果】
无失败项
【实际结果】

tst_test.c:1329: TINFO: Testing on btrfs
tst_test.c:859: TINFO: Formatting /dev/loop0 with btrfs opts='' extra opts=''
tst_test.c:1263: TINFO: Timeout per run is 0h 05m 00s
fallocate06.c:117: TINFO: Copy-on-write is supported
fallocate06.c:168: TINFO: Case 1. Fill FS: no; Use copy on write: no
fallocate06.c:157: TPASS: write() successful
fallocate06.c:201: TPASS: Misaligned allocation works as expected
fallocate06.c:157: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) successful
fallocate06.c:237: TPASS: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) cleared the correct file range
fallocate06.c:168: TINFO: Case 2. Fill FS: yes; Use copy on write: no
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file0 size 21710183
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file1 size 8070086
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file2 size 3971177
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file3 size 36915315
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file4 size 70310993
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file5 size 4807935
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file6 size 90739786
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file7 size 76896492
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file8 size 72228649
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file9 size 36207821
tst_fill_fs.c:32: TINFO: Creating file mntpoint/file10 size 81483962
tst_fill_fs.c:59: TINFO: write(): ENOSPC (28)
fallocate06.c:157: TPASS: write() successful
fallocate06.c:201: TPASS: Misaligned allocation works as expected
fallocate06.c:146: TFAIL: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) failed unexpectedly: ENOSPC (28)
fallocate06.c:168: TINFO: Case 3. Fill FS: no; Use copy on write: yes
fallocate06.c:157: TPASS: write() successful

存在fallocate06.c:146: TFAIL: fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE) failed unexpectedly: ENOSPC (28) 失败项
【附件信息】

Attachments

Comments (7)

Hey weidongkl, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

weidongkl created缺陷
weidongkl set related repository to openEuler/kernel
weidongkl changed description
weidongkl set top level to Medium
展开全部操作日志

BTRFS本身不太稳定,还在持续开发中,目前是社区爱好者使用的特性,暂时不提供商用保障

可以合入,你能帮忙 backport 一下这个补丁吗,把补丁发到 kernel@openeuler.org 中。
操作有疑问的话,可以找 @成坚 (CHENG Jian) 帮忙。谢谢!

Hello,之前处理了下这个补丁,发现差距过大,没有合入进去。@成坚 (CHENG Jian) 大佬,现在这个问题怎么样哈 :stuck_out_tongue_winking_eye:

Sign in to comment

状态
Assignees
Labels
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(4)
5329419 openeuler ci bot 1578984659 7914604 weidongkl 1611763152