Lines Matching refs:opts

82     char *opts, char *root, bool_t shallow, FN_status_t *status);
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, in getmapent_fn() argument
300 process_ref(ref, cname, map, key, opts, root, shallow, status); in getmapent_fn()
310 char *opts, char *root, bool_t shallow, FN_status_t *status) in process_ref() argument
340 opts = ml.linebuf + 1; /* skip '-' */ in process_ref()
343 mapents = parse_entry(key, map, opts, &ml, NULL, 0, in process_ref()
383 safe_opts(opts), nfshost, nfsdir); in process_ref()
393 strdup(opts), strdup(""), homedir); in process_ref()
411 opts, status)); in process_ref()
418 return (new_mapent(root, strdup(""), strdup("autofs"), strdup(opts), in process_ref()
434 char *mntpnt, char *opts, FN_status_t *status) in frontier() argument
470 mntpnt, child, opts, status); in frontier()
499 char *mntpnt, const char *name, char *opts, FN_status_t *status) in frontier_aux() argument
551 opts = (opts[0] != '\0') in frontier_aux()
552 ? concat(opts, ',', "direct") in frontier_aux()
554 me = new_mapent(noroot, strdup(mntpnt), strdup("autofs"), opts, in frontier_aux()
566 frontier(mapents, ref, map, maplen, mntpnt, opts, status); in frontier_aux()
681 char *opts; in safe_mapent() local
687 opts = me->map_mntopts; in safe_mapent()
688 me->map_mntopts = safe_opts(opts); in safe_mapent()
689 free(opts); in safe_mapent()
695 safe_opts(const char *opts) in safe_opts() argument
700 if (opts[0] == '\0') { in safe_opts()
705 start = strstr(opts, MNTOPT_NOSUID); in safe_opts()
708 while (start > opts && isspace(*(start - 1))) { in safe_opts()
711 if ((start == opts || *(start - 1) == ',') && in safe_opts()
712 opts[len] == ',' || opts[len] == '\0') { in safe_opts()
713 return (strdup(opts)); in safe_opts()
716 return (concat(opts, ',', MNTOPT_NOSUID)); in safe_opts()