summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/fuse_loop_mt.c8
-rw-r--r--lib/helper.c3
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c
index cf9ad86..0200d73 100644
--- a/lib/fuse_loop_mt.c
+++ b/lib/fuse_loop_mt.c
@@ -464,9 +464,11 @@ void fuse_loop_cfg_set_idle_threads(struct fuse_loop_config *config,
unsigned int value)
{
if (value > FUSE_LOOP_MT_MAX_THREADS) {
- fuse_log(FUSE_LOG_ERR,
- "Ignoring invalid max threads value "
- "%u > max (%u).\n", value, FUSE_LOOP_MT_MAX_THREADS);
+ if (value != UINT_MAX)
+ fuse_log(FUSE_LOG_ERR,
+ "Ignoring invalid max threads value "
+ "%u > max (%u).\n", value,
+ FUSE_LOOP_MT_MAX_THREADS);
return;
}
config->max_idle_threads = value;
diff --git a/lib/helper.c b/lib/helper.c
index b270b85..35c6a98 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -210,7 +210,7 @@ int fuse_parse_cmdline_312(struct fuse_args *args,
{
memset(opts, 0, sizeof(struct fuse_cmdline_opts));
- opts->max_idle_threads = -1; /* new default in fuse version 3.12 */
+ opts->max_idle_threads = UINT_MAX; /* new default in fuse version 3.12 */
opts->max_threads = 10;
if (fuse_opt_parse(args, opts, fuse_helper_opts,
@@ -239,7 +239,6 @@ int fuse_parse_cmdline_30(struct fuse_args *args,
{
struct fuse_cmdline_opts opts;
-
int rc = fuse_parse_cmdline_312(args, &opts);
if (rc == 0) {
/* copy up to the size of the old pre 3.12 struct */