[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <174786677621.1383760.4131011398253369305.stgit@frogsfrogsfrogs>
Date: Wed, 21 May 2025 15:35:57 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org
Subject: [PATCH 04/29] fuse2fs: fix cache size parsing
From: Darrick J. Wong <djwong@...nel.org>
Fix the cache size parsing of "cache_size=%s" -- the "%" is at position
11, not 12.
Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
misc/fuse2fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 8d52e00e3ece48..3e78b6b13fa7bb 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -3809,7 +3809,7 @@ static int fuse2fs_opt_proc(void *data, const char *arg,
}
return 1;
case FUSE2FS_CACHE_SIZE:
- ff->cache_size = parse_num_blocks2(arg + 12, -1);
+ ff->cache_size = parse_num_blocks2(arg + 11, -1);
if (ff->cache_size < 1 || ff->cache_size > INT32_MAX) {
fprintf(stderr, "%s: %s\n", arg,
_("cache size must be between 1 block and 2GB."));
Powered by blists - more mailing lists