Lines Matching defs:opts

263 		    "\tmount [-vO] [-o opts] <-a | filesystem>\n"));
4854 parse_allow_args(int argc, char **argv, boolean_t un, struct allow_opts *opts)
4856 int uge_sum = opts->user + opts->group + opts->everyone;
4857 int csuge_sum = opts->create + opts->set + uge_sum;
4858 int ldcsuge_sum = csuge_sum + opts->local + opts->descend;
4859 int all_sum = un ? ldcsuge_sum + opts->recursive : ldcsuge_sum;
4865 if (opts->prt_usage) {
4872 if (opts->set) {
4877 opts->dataset = munge_args(argc, argv, un, 3, &opts->perms);
4881 opts->who = argv[0];
4882 } else if (opts->create) {
4886 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4887 } else if (opts->everyone) {
4891 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4894 opts->everyone = B_TRUE;
4897 opts->dataset = munge_args(argc, argv, un, 2, &opts->perms);
4899 opts->prt_perms = B_TRUE;
4900 opts->dataset = argv[argc-1];
4902 opts->dataset = munge_args(argc, argv, un, 3, &opts->perms);
4903 opts->who = argv[0];
4906 if (!opts->local && !opts->descend) {
4907 opts->local = B_TRUE;
4908 opts->descend = B_TRUE;
5057 construct_fsacl_list(boolean_t un, struct allow_opts *opts, nvlist_t **nvlp)
5062 if (opts->set) {
5063 store_allow_perm(ZFS_DELEG_NAMED_SET, opts->local,
5064 opts->descend, opts->who, opts->perms, *nvlp);
5065 } else if (opts->create) {
5066 store_allow_perm(ZFS_DELEG_CREATE, opts->local,
5067 opts->descend, NULL, opts->perms, *nvlp);
5068 } else if (opts->everyone) {
5069 store_allow_perm(ZFS_DELEG_EVERYONE, opts->local,
5070 opts->descend, NULL, opts->perms, *nvlp);
5072 char *curr = opts->who;
5092 if (opts->user) {
5106 } else if (opts->group) {
5151 store_allow_perm(who_type, opts->local,
5152 opts->descend, who, opts->perms, *nvlp);
5341 struct allow_opts opts = { 0 };
5345 /* check opts */
5349 opts.local = B_TRUE;
5352 opts.descend = B_TRUE;
5355 opts.user = B_TRUE;
5358 opts.group = B_TRUE;
5361 opts.everyone = B_TRUE;
5364 opts.set = B_TRUE;
5367 opts.create = B_TRUE;
5370 opts.recursive = B_TRUE;
5378 opts.prt_usage = B_TRUE;
5391 parse_allow_args(argc, argv, un, &opts);
5394 if ((zhp = zfs_open(g_zfs, opts.dataset, ZFS_TYPE_FILESYSTEM |
5397 opts.dataset);
5410 if (opts.prt_perms)
5413 (void) construct_fsacl_list(un, &opts, &update_perm_nvl);
5417 if (un && opts.recursive) {
5457 const char *opts = holding ? "rt" : "r";
5461 while ((c = getopt(argc, argv, opts)) != -1) {
5662 const char *opts = "rH";
5673 while ((c = getopt(argc, argv, opts)) != -1) {
6064 (void) fprintf(stderr, gettext("the opts argument for "
6770 (void) fprintf(stderr, gettext("usage: mount [-o opts] "