Lines Matching refs:opts

249 		    "\tmount [-vO] [-o opts] <-a | filesystem>\n"));
4811 parse_allow_args(int argc, char **argv, boolean_t un, struct allow_opts *opts)
4813 int uge_sum = opts->user + opts->group + opts->everyone;
4814 int csuge_sum = opts->create + opts->set + uge_sum;
4815 int ldcsuge_sum = csuge_sum + opts->local + opts->descend;
4816 int all_sum = un ? ldcsuge_sum + opts->recursive : ldcsuge_sum;
4822 if (opts->prt_usage) {
4829 if (opts->set) {
4834 opts->dataset = munge_args(argc, argv, un, 3, &opts->perms);
4838 opts->who = argv[0];
4839 } else if (opts->create) {
4843 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4844 } else if (opts->everyone) {
4848 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4851 opts->everyone = B_TRUE;
4854 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4856 opts->prt_perms = B_TRUE;
4857 opts->dataset = argv[argc-1];
4859 opts->dataset = munge_args(argc, argv, un, 3, &opts->perms);
4860 opts->who = argv[0];
4863 if (!opts->local && !opts->descend) {
4864 opts->local = B_TRUE;
4865 opts->descend = B_TRUE;
5014 construct_fsacl_list(boolean_t un, struct allow_opts *opts, nvlist_t **nvlp)
5019 if (opts->set) {
5020 store_allow_perm(ZFS_DELEG_NAMED_SET, opts->local,
5021 opts->descend, opts->who, opts->perms, *nvlp);
5022 } else if (opts->create) {
5023 store_allow_perm(ZFS_DELEG_CREATE, opts->local,
5024 opts->descend, NULL, opts->perms, *nvlp);
5025 } else if (opts->everyone) {
5026 store_allow_perm(ZFS_DELEG_EVERYONE, opts->local,
5027 opts->descend, NULL, opts->perms, *nvlp);
5029 char *curr = opts->who;
5049 if (opts->user) {
5063 } else if (opts->group) {
5108 store_allow_perm(who_type, opts->local,
5109 opts->descend, who, opts->perms, *nvlp);
5298 struct allow_opts opts = { 0 };
5302 /* check opts */
5306 opts.local = B_TRUE;
5309 opts.descend = B_TRUE;
5312 opts.user = B_TRUE;
5315 opts.group = B_TRUE;
5318 opts.everyone = B_TRUE;
5321 opts.set = B_TRUE;
5324 opts.create = B_TRUE;
5327 opts.recursive = B_TRUE;
5335 opts.prt_usage = B_TRUE;
5348 parse_allow_args(argc, argv, un, &opts);
5351 if ((zhp = zfs_open(g_zfs, opts.dataset, ZFS_TYPE_FILESYSTEM |
5354 opts.dataset);
5367 if (opts.prt_perms)
5370 (void) construct_fsacl_list(un, &opts, &update_perm_nvl);
5374 if (un && opts.recursive) {
5414 const char *opts = holding ? "rt" : "r";
5418 while ((c = getopt(argc, argv, opts)) != -1) {
5619 const char *opts = "rH";
5630 while ((c = getopt(argc, argv, opts)) != -1) {
6021 (void) fprintf(stderr, gettext("the opts argument for "
6648 (void) fprintf(stderr, gettext("usage: mount [-o opts] "