!65 [sync] PR-64: mkfs.xfs: disable inobtcount feature

From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
This commit is contained in:
openeuler-ci-bot 2023-06-20 01:20:05 +00:00 committed by Gitee
commit dec02fb9ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From 25d94d8a188ce3cade4d9ee8ab3b032ca0dccdc4 Mon Sep 17 00:00:00 2001
From: wguanghao <wuguanghao3@huawei.com>
Date: Mon, 19 Jun 2023 11:12:43 +0800
Subject: [PATCH] mkfs.xfs: disable inobtcount feature
In the 5.10 kernel, XFS inobtcount is consisdered a risky
feature and isn't yet stable.
So it's disabled by default.
Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
---
mkfs/xfs_mkfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 13359d9..b7e335f 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -3886,7 +3886,7 @@ main(
.spinodes = true,
.rmapbt = false,
.reflink = true,
- .inobtcnt = true,
+ .inobtcnt = false,
.parent_pointers = false,
.nodalign = false,
.nortalign = false,
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: xfsprogs Name: xfsprogs
Version: 5.14.1 Version: 5.14.1
Release: 8 Release: 9
Summary: Administration and debugging tools for the XFS file system Summary: Administration and debugging tools for the XFS file system
License: GPL+ and LGPLv2+ License: GPL+ and LGPLv2+
URL: https://xfs.wiki.kernel.org URL: https://xfs.wiki.kernel.org
@ -24,6 +24,7 @@ Patch2: 0002-libxfs-fix-inode-reservation-space-for-removing-tran.patch
Patch3: 0003-mkfs-prevent-corruption-of-passed-in-suboption-strin.patch Patch3: 0003-mkfs-prevent-corruption-of-passed-in-suboption-strin.patch
Patch4: 0004-xfsprogs-Add-sw64-architecture.patch Patch4: 0004-xfsprogs-Add-sw64-architecture.patch
Patch5: 0005-xfs_db-use-preferable-macro-to-seek-offset-for-local.patch Patch5: 0005-xfs_db-use-preferable-macro-to-seek-offset-for-local.patch
Patch6: 0006-mkfs.xfs-disable-inobtcount-feature.patch
%description %description
xfsprogs are the userspace utilities that manage XFS filesystems. xfsprogs are the userspace utilities that manage XFS filesystems.
@ -107,6 +108,9 @@ rm -rf %{buildroot}%{_datadir}/doc/xfsprogs/
%changelog %changelog
* Mon Jun 19 2023 wuguanghao <wuguanghao3@huawei.com> - 5.14.1-9
- mkfs.xfs:disable inobtcount feature
* Fri Apr 28 2023 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 5.14.1-8 * Fri Apr 28 2023 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 5.14.1-8
- readline has been removed by bbe12eb9a0f9 (xfsprogs: remove libreadline support), - readline has been removed by bbe12eb9a0f9 (xfsprogs: remove libreadline support),
we can use --enable-editline=yes to enable similar functions. we can use --enable-editline=yes to enable similar functions.