Lines Matching defs:opts
68 * getmapent_fn(char *key, char *map, char *opts, uid_t uid,
82 char *opts, char *root, bool_t shallow, FN_status_t *status);
92 * opts: default mount options
99 char *mntpnt, char *opts, FN_status_t *status);
111 char *mntpnt, const char *name, char *opts, FN_status_t *status);
165 safe_opts(const char *opts);
209 getmapent_fn(char *key, char *map, char *opts, uid_t uid, bool_t shallow,
300 process_ref(ref, cname, map, key, opts, root, shallow, status);
310 char *opts, char *root, bool_t shallow, FN_status_t *status)
336 "%s/%s: opts too long (max %d chars)",
340 opts = ml.linebuf + 1; /* skip '-' */
343 mapents = parse_entry(key, map, opts, &ml, NULL, 0,
383 safe_opts(opts), nfshost, nfsdir);
393 strdup(opts), strdup(""), homedir);
411 opts, status));
418 return (new_mapent(root, strdup(""), strdup("autofs"), strdup(opts),
434 char *mntpnt, char *opts, FN_status_t *status)
470 mntpnt, child, opts, status);
499 char *mntpnt, const char *name, char *opts, FN_status_t *status)
551 opts = (opts[0] != '\0')
552 ? concat(opts, ',', "direct")
554 me = new_mapent(noroot, strdup(mntpnt), strdup("autofs"), opts,
566 frontier(mapents, ref, map, maplen, mntpnt, opts, status);
681 char *opts;
687 opts = me->map_mntopts;
688 me->map_mntopts = safe_opts(opts);
689 free(opts);
695 safe_opts(const char *opts)
700 if (opts[0] == '\0') {
705 start = strstr(opts, MNTOPT_NOSUID);
708 while (start > opts && isspace(*(start - 1))) {
711 if ((start == opts || *(start - 1) == ',') &&
712 opts[len] == ',' || opts[len] == '\0') {
713 return (strdup(opts));
716 return (concat(opts, ',', MNTOPT_NOSUID));