Lines Matching defs:opts

149 	struct fuse_cmdline_opts *opts = data;
153 if (!opts->mountpoint) {
155 return fuse_opt_add_opt(&opts->mountpoint, arg);
165 return fuse_opt_add_opt(&opts->mountpoint, mountpoint);
206 struct fuse_cmdline_opts *opts);
209 struct fuse_cmdline_opts *opts)
211 memset(opts, 0, sizeof(struct fuse_cmdline_opts));
213 opts->max_idle_threads = UINT_MAX; /* new default in fuse version 3.12 */
214 opts->max_threads = 10;
216 if (fuse_opt_parse(args, opts, fuse_helper_opts,
224 if (!opts->nodefault_subtype)
235 struct fuse_cmdline_opts *opts);
240 struct fuse_cmdline_opts opts;
242 int rc = fuse_parse_cmdline_312(args, &opts);
245 memcpy(out_opts, &opts,
247 sizeof(opts.max_idle_threads));
312 struct fuse_cmdline_opts opts;
316 if (fuse_parse_cmdline(&args, &opts) != 0)
319 if (opts.show_version) {
326 if (opts.show_help) {
337 if (!opts.show_help &&
338 !opts.mountpoint) {
351 if (fuse_mount(fuse,opts.mountpoint) != 0) {
356 if (fuse_daemonize(opts.foreground) != 0) {
367 if (opts.singlethread)
376 fuse_loop_cfg_set_clone_fd(loop_config, opts.clone_fd);
378 fuse_loop_cfg_set_idle_threads(loop_config, opts.max_idle_threads);
379 fuse_loop_cfg_set_max_threads(loop_config, opts.max_threads);
392 free(opts.mountpoint);
398 void fuse_apply_conn_info_opts(struct fuse_conn_info_opts *opts,
401 if(opts->set_max_write)
402 conn->max_write = opts->max_write;
403 if(opts->set_max_background)
404 conn->max_background = opts->max_background;
405 if(opts->set_congestion_threshold)
406 conn->congestion_threshold = opts->congestion_threshold;
407 if(opts->set_time_gran)
408 conn->time_gran = opts->time_gran;
409 if(opts->set_max_readahead)
410 conn->max_readahead = opts->max_readahead;
417 LL_ENABLE(opts->splice_read, FUSE_CAP_SPLICE_READ);
418 LL_DISABLE(opts->no_splice_read, FUSE_CAP_SPLICE_READ);
420 LL_ENABLE(opts->splice_write, FUSE_CAP_SPLICE_WRITE);
421 LL_DISABLE(opts->no_splice_write, FUSE_CAP_SPLICE_WRITE);
423 LL_ENABLE(opts->splice_move, FUSE_CAP_SPLICE_MOVE);
424 LL_DISABLE(opts->no_splice_move, FUSE_CAP_SPLICE_MOVE);
426 LL_ENABLE(opts->auto_inval_data, FUSE_CAP_AUTO_INVAL_DATA);
427 LL_DISABLE(opts->no_auto_inval_data, FUSE_CAP_AUTO_INVAL_DATA);
429 LL_DISABLE(opts->no_readdirplus, FUSE_CAP_READDIRPLUS);
430 LL_DISABLE(opts->no_readdirplus_auto, FUSE_CAP_READDIRPLUS_AUTO);
432 LL_ENABLE(opts->async_dio, FUSE_CAP_ASYNC_DIO);
433 LL_DISABLE(opts->no_async_dio, FUSE_CAP_ASYNC_DIO);
435 LL_ENABLE(opts->writeback_cache, FUSE_CAP_WRITEBACK_CACHE);
436 LL_DISABLE(opts->no_writeback_cache, FUSE_CAP_WRITEBACK_CACHE);
438 LL_ENABLE(opts->async_read, FUSE_CAP_ASYNC_READ);
439 LL_DISABLE(opts->sync_read, FUSE_CAP_ASYNC_READ);
441 LL_DISABLE(opts->no_remote_posix_lock, FUSE_CAP_POSIX_LOCKS);
442 LL_DISABLE(opts->no_remote_flock, FUSE_CAP_FLOCK_LOCKS);
447 struct fuse_conn_info_opts *opts;
449 opts = calloc(1, sizeof(struct fuse_conn_info_opts));
450 if(opts == NULL) {
454 if(fuse_opt_parse(args, opts, conn_info_opt_spec, NULL) == -1) {
455 free(opts);
458 return opts;
463 struct mount_opts *opts = NULL;
469 opts = parse_mount_opts(&args);
470 if (opts == NULL)
473 fd = fuse_kern_mount(mountpoint, opts);
474 destroy_mount_opts(opts);