Lines Matching refs:mnt_opts
214 char *mnt_opts = NULL;
233 if (get_mnt_flag_opts(&mnt_opts, mo.flags) == -1)
235 if (!(mo.flags & MS_NODEV) && fuse_opt_add_opt(&mnt_opts, "dev") == -1)
237 if (!(mo.flags & MS_NOSUID) && fuse_opt_add_opt(&mnt_opts, "suid") == -1)
239 if (mo.kernel_opts && fuse_opt_add_opt(&mnt_opts, mo.kernel_opts) == -1)
241 if (mo.mtab_opts && fuse_opt_add_opt(&mnt_opts, mo.mtab_opts) == -1)
243 if (mo.fusermount_opts && fuse_opt_add_opt(&mnt_opts, mo.fusermount_opts) < 0)
246 res = fusermount(0, 0, 0, mnt_opts ? mnt_opts : "", mountpoint);
249 free(mnt_opts);