Lines Matching defs:flags
62 int flags;
247 static void set_mount_flag(const char *s, int *flags)
255 *flags |= mount_flags[i].flag;
257 *flags &= ~mount_flags[i].flag;
281 set_mount_flag(arg, &mo->flags);
547 res = mount(source, mnt, MS_OPTIONSTR|mo->flags, type, NULL, 0,
560 res = mount(source, mnt, MS_OPTIONSTR|mo->flags, type, NULL, 0,
595 static int get_mnt_flag_opts(char **mnt_optsp, int flags)
599 if (!(flags & MS_RDONLY) && fuse_opt_add_opt(mnt_optsp, "rw") == -1)
603 if (mount_flags[i].on && (flags & mount_flags[i].flag) &&
623 mo.flags = MS_NOSUID | MS_NODEV;
625 mo.flags = 0;
642 * have MS_NOSUID for mount flags (no MS_(NO)SETUID, etc.). But if
652 mo.flags |= MS_NOSUID;
677 if (get_mnt_flag_opts(&mnt_opts, mo.flags) == -1)
680 if (!(mo.flags & MS_NODEV) && fuse_opt_add_opt(&mnt_opts, "dev") == -1)
682 if (!(mo.flags & MS_NOSUID) && fuse_opt_add_opt(&mnt_opts, "suid") == -1)