Lines Matching defs:opts
267 * mount filesystem. Use mapopts if no default opts are provided.
526 * push_options(hiernode *node, char *opts, char *mapopts, int err)
570 * set_mapent_opts(struct mapent *me, char *opts, char *defaultopts,
573 * out the fstype part from the opts. Use default options if opts is NULL.
578 set_mapent_opts(struct mapent *me, char *opts, char *defaultopts,
589 if (opts == NULL) {
590 opts = defaultopts;
591 if (defaultopts == NULL) { /* NULL opts for entry */
596 if (*opts == '-')
597 opts++;
599 /* separate opts into fstype and (other) entrypopts */
600 get_opts(opts, entryopts, fstype, &fstype_opt);
602 /* replace any existing opts */
616 if ((rc = fstype_opts(me, opts, defaultopts,
640 * opts: "ro,nosuid"
648 get_opts(input, opts, fstype, fstype_opt)
650 char *opts; /* output */
658 *opts = '\0';
668 if (*opts)
669 (void) strcat(opts, ",");
670 (void) strcat(opts, p);
676 * fstype_opts(struct mapent *me, char *opts, char *defaultopts,
682 fstype_opts(struct mapent *me, char *opts, char *defaultopts,
696 if (strcmp(defaultopts, opts) == 0) {
1166 * modifies automount opts - gets rid of all "indirect" and "direct" strings
1173 char *opts;
1196 opts = buf;
1197 while ((opt = strtok_r(opts, ",", &placeholder)) != NULL) {
1198 opts = NULL;