diff mbox series

[13/16] fuse2fs: report real inode numbers

Message ID 174553065159.1160461.12395515521619169511.stgit@frogsfrogsfrogs
State New
Headers show
Series [01/16] fuse2fs: refuse unsupported features | expand

Commit Message

Darrick J. Wong April 24, 2025, 9:44 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Report real inode numbers in stat instead of letting fuse invent them
for us.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 misc/fuse2fs.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index a13564a30575da..7db0a2d1f2d855 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -611,6 +611,7 @@  static void *op_init(struct fuse_conn_info *conn
 #endif
 #if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0)
 	conn->time_gran = 1;
+	cfg->use_ino = 1;
 #endif
 	if (fs->flags & EXT2_FLAG_RW) {
 		fs->super->s_mnt_count++;