Lines Matching defs:mnt_optsp
279 static int get_mnt_opts(int flags, char *opts, char **mnt_optsp)
284 if (!(flags & MS_RDONLY) && add_option(mnt_optsp, "rw", 0) == -1)
289 add_option(mnt_optsp, mount_flags[i].opt, 0) == -1)
293 if (add_option(mnt_optsp, opts, 0) == -1)
296 l = strlen(*mnt_optsp);
297 if ((*mnt_optsp)[l-1] == ',')
298 (*mnt_optsp)[l-1] = '\0';
304 if (add_option(mnt_optsp, "user=", strlen(user)) == -1)
306 strcat(*mnt_optsp, user);
339 char **mnt_optsp)
454 *mnt_optsp = mnt_opts;