From: Darrick J. Wong <djwong@xxxxxxxxxx> Fix the cache size parsing of "cache_size=%s" -- the "%" is at position 11, not 12. Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx> --- 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."));