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
【问题复现步骤】
--- 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) 失败项
【附件信息】
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
BTRFS本身不太稳定,还在持续开发中,目前是社区爱好者使用的特性,暂时不提供商用保障
https://github.com/linux-test-project/ltp/issues/804
这是ltp社区反馈的kernel修复commit,能否合入20.03-sp1 kernel中
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6d4572a9d71d
补丁已经合入
分支 | commit | tag |
---|---|---|
openEuler-1.0-LTS | ed46208dee61c75f129bb4fc10464672477a2aa5 | openEuler-1.0-LTS~5 |
kernel-4.19 | a486c868c4b93edf78bc18d66333ad6da3228fbd | kernel-4.19~4 |
/close
this issue is closed by: weidongkl.
登录 后才可以发表评论