From: Wang Yugui <wangyugui@e16-tech.com>
To: linux-xfs@vger.kernel.org
Cc: Wang Yugui <wangyugui@e16-tech.com>
Subject: [PATCH] xfsprogs: 4K inode support
Date: Wed, 22 Apr 2026 07:01:49 +0800 [thread overview]
Message-ID: <20260421230149.2211-1-wangyugui@e16-tech.com> (raw)
In-Reply-To: <20260421094204.A743.409509F4@e16-tech.com>
---
include/xfs_multidisk.h | 2 +-
libxfs/xfs_format.h | 2 +-
libxfs/xfs_sb.c | 1 +
man/man8/mkfs.xfs.8.in | 3 +--
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/xfs_multidisk.h b/include/xfs_multidisk.h
index ef4443b0bb0e..b77a915811f9 100644
--- a/include/xfs_multidisk.h
+++ b/include/xfs_multidisk.h
@@ -14,7 +14,7 @@
#define XFS_DFL_BLOCKSIZE_LOG 12 /* 4096 byte blocks */
#define XFS_DINODE_DFL_LOG 8 /* 256 byte inodes */
#define XFS_DINODE_DFL_CRC_LOG 9 /* 512 byte inodes for CRCs */
-#define XFS_MIN_INODE_PERBLOCK 2 /* min inodes per block */
+#define XFS_MIN_INODE_PERBLOCK 1 /* min inodes per block */
#define XFS_DFL_IMAXIMUM_PCT 25 /* max % of space for inodes */
#define XFS_MIN_REC_DIRSIZE 12 /* 4096 byte dirblocks (V2) */
#define XFS_MAX_INODE_SIG_BITS 32 /* most significant bits in an
diff --git a/libxfs/xfs_format.h b/libxfs/xfs_format.h
index 779dac59b1f3..84cce8d268e6 100644
--- a/libxfs/xfs_format.h
+++ b/libxfs/xfs_format.h
@@ -1079,7 +1079,7 @@ enum xfs_dinode_fmt {
* Inode minimum and maximum sizes.
*/
#define XFS_DINODE_MIN_LOG 8
-#define XFS_DINODE_MAX_LOG 11
+#define XFS_DINODE_MAX_LOG 12
#define XFS_DINODE_MIN_SIZE (1 << XFS_DINODE_MIN_LOG)
#define XFS_DINODE_MAX_SIZE (1 << XFS_DINODE_MAX_LOG)
diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c
index dd14c3ab3b59..9c57d13e50bc 100644
--- a/libxfs/xfs_sb.c
+++ b/libxfs/xfs_sb.c
@@ -717,6 +717,7 @@ xfs_validate_sb_common(
case 512:
case 1024:
case 2048:
+ case 4096:
break;
default:
xfs_warn(mp, "inode size of %d bytes not supported",
diff --git a/man/man8/mkfs.xfs.8.in b/man/man8/mkfs.xfs.8.in
index fbafc5c79e02..b0a2222d370d 100644
--- a/man/man8/mkfs.xfs.8.in
+++ b/man/man8/mkfs.xfs.8.in
@@ -638,8 +638,7 @@ The minimum (and default)
is 256 bytes without crc, 512 bytes with crc enabled.
The maximum
.I value
-is 2048 (2 KiB) subject to the restriction that
-the inode size cannot exceed one half of the filesystem block size.
+is 4096 (4 KiB).
.IP
XFS uses 64-bit inode numbers internally; however, the number of
significant bits in an inode number
--
2.36.2
next prev parent reply other threads:[~2026-04-21 23:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-21 1:42 4K inode support on 4Kn device Wang Yugui
2026-04-21 5:48 ` Carlos Maiolino
2026-04-21 23:01 ` Wang Yugui [this message]
2026-04-21 23:05 ` [ RFC ] xfs: 4K inode support Wang Yugui
2026-04-22 21:41 ` Dave Chinner
2026-04-22 23:02 ` Wang Yugui
2026-04-23 2:09 ` Eric Sandeen
2026-04-23 2:18 ` Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260421230149.2211-1-wangyugui@e16-tech.com \
--to=wangyugui@e16-tech.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.