394 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

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

已完成
缺陷
创建于  
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) 失败项
【附件信息】

评论 (14)

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 创建了缺陷
weidongkl 关联仓库设置为openEuler/kernel
weidongkl 修改了描述
weidongkl 置顶等级设置为
展开全部操作日志

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

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

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

btrfs 在 openEuler 20.03 是技术预览特性,不建议用于生产环境,可以验证或体验该功能,也可以参与社区共同维护。非常期望文件系统的开发者参与社区版本的维护,优化文件系统的性能和稳定性。

该补丁在 openEuler 21.03 (5.10)版本中是有的,也欢迎对新版本测试。openEuler 社区急需文件系统的 Maintainer 和 committer,欢迎参与。

补丁已经合入

分支 commit tag
openEuler-1.0-LTS ed46208dee61c75f129bb4fc10464672477a2aa5 openEuler-1.0-LTS~5
kernel-4.19 a486c868c4b93edf78bc18d66333ad6da3228fbd kernel-4.19~4
成坚 (CHENG Jian) 修改了标题

this issue is closed by: weidongkl.

openeuler-ci-bot 任务状态待办的 修改为已完成
openeuler-ci-bot 置顶等级 修改为不置顶

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936 7914604 weidongkl 1633671150
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助

14c37bed 8189591 565d56ea 8189591