Lines Matching defs:opts

262 		    "\tmount [-vO] [-o opts] <-a | filesystem>\n"));
4844 parse_allow_args(int argc, char **argv, boolean_t un, struct allow_opts *opts)
4846 int uge_sum = opts->user + opts->group + opts->everyone;
4847 int csuge_sum = opts->create + opts->set + uge_sum;
4848 int ldcsuge_sum = csuge_sum + opts->local + opts->descend;
4849 int all_sum = un ? ldcsuge_sum + opts->recursive : ldcsuge_sum;
4855 if (opts->prt_usage)
4861 if (opts->set) {
4866 opts->dataset = munge_args(argc, argv, un, 3, &opts->perms);
4870 opts->who = argv[0];
4871 } else if (opts->create) {
4875 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4876 } else if (opts->everyone) {
4880 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4883 opts->everyone = B_TRUE;
4886 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4888 opts->prt_perms = B_TRUE;
4889 opts->dataset = argv[argc-1];
4891 opts->dataset = munge_args(argc, argv, un, 3, &opts->perms);
4892 opts->who = argv[0];
4895 if (!opts->local && !opts->descend) {
4896 opts->local = B_TRUE;
4897 opts->descend = B_TRUE;
5042 construct_fsacl_list(boolean_t un, struct allow_opts *opts, nvlist_t **nvlp)
5047 if (opts->set) {
5048 store_allow_perm(ZFS_DELEG_NAMED_SET, opts->local,
5049 opts->descend, opts->who, opts->perms, *nvlp);
5050 } else if (opts->create) {
5051 store_allow_perm(ZFS_DELEG_CREATE, opts->local,
5052 opts->descend, NULL, opts->perms, *nvlp);
5053 } else if (opts->everyone) {
5054 store_allow_perm(ZFS_DELEG_EVERYONE, opts->local,
5055 opts->descend, NULL, opts->perms, *nvlp);
5057 char *curr = opts->who;
5077 if (opts->user) {
5091 } else if (opts->group) {
5135 store_allow_perm(who_type, opts->local,
5136 opts->descend, who, opts->perms, *nvlp);
5321 struct allow_opts opts = { 0 };
5325 /* check opts */
5329 opts.local = B_TRUE;
5332 opts.descend = B_TRUE;
5335 opts.user = B_TRUE;
5338 opts.group = B_TRUE;
5341 opts.everyone = B_TRUE;
5344 opts.set = B_TRUE;
5347 opts.create = B_TRUE;
5350 opts.recursive = B_TRUE;
5358 opts.prt_usage = B_TRUE;
5371 parse_allow_args(argc, argv, un, &opts);
5374 if ((zhp = zfs_open(g_zfs, opts.dataset, ZFS_TYPE_FILESYSTEM |
5377 opts.dataset);
5390 if (opts.prt_perms)
5393 (void) construct_fsacl_list(un, &opts, &update_perm_nvl);
5397 if (un && opts.recursive) {
5438 const char *opts = holding ? "rt" : "r";
5442 while ((c = getopt(argc, argv, opts)) != -1) {
5643 const char *opts = "rH";
5654 while ((c = getopt(argc, argv, opts)) != -1) {
6045 (void) fprintf(stderr, gettext("the opts argument for "
6742 (void) fprintf(stderr, gettext("usage: mount [-o opts] "