]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fuse2fs: report real inode numbers
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:44:10 +0000 (14:44 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 14:25:07 +0000 (10:25 -0400)
Report real inode numbers in stat instead of letting fuse invent them
for us.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553065159.1160461.12395515521619169511.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c

index c85b2a0facfa4f6725d8d22cae2521fc7e071089..fcab88a7467b50925bb40d27c081b0f5ccb436b5 100644 (file)
@@ -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++;