* [PATCH] erofs-utils: mkfs: fix `--incremental=data` failure
@ 2026-07-28 15:40 Gao Xiang
0 siblings, 0 replies; only message in thread
From: Gao Xiang @ 2026-07-28 15:40 UTC (permalink / raw)
To: linux-erofs; +Cc: Gao Xiang
`idata_size` should be set for erofs_prepare_tail_block().
Fixes: c16df072941f ("erofs-utils: mkfs: support directory compression")
Signed-off-by: Gao Xiang <xiang@kernel.org>
---
lib/inode.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/inode.c b/lib/inode.c
index 9f4d14c..0547b60 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -1605,7 +1605,8 @@ static int erofs_mkfs_create_directory(const struct erofs_mkfs_btctx *ctx,
}
/* it will be used in erofs_prepare_inode_buffer */
- if (inode->datalayout == EROFS_INODE_FLAT_INLINE)
+ if (inode->datalayout == EROFS_INODE_FLAT_INLINE ||
+ inode->datalayout == EROFS_INODE_FLAT_PLAIN)
inode->idata_size = inode->i_size & (bsz - 1);
/*
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-28 15:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 15:40 [PATCH] erofs-utils: mkfs: fix `--incremental=data` failure Gao Xiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox