Lines Matching refs:optlist

703  * Do a sanity check on the optlist provided for the protocol.  This
711 struct options *optlist;
716 for (optlist = optlistp; optlist != NULL; optlist = optlist->next) {
719 optname = optlist->optname;
762 * free_opt(optlist)
766 free_opt(struct options *optlist)
769 while (optlist != NULL) {
770 nextopt = optlist->next;
771 free(optlist);
772 optlist = nextopt;
781 valid_options(sa_handle_t handle, struct options *optlist, char *proto,
796 for (cur = optlist; cur != NULL; cur = cur->next) {
815 * add_optionset(group, optlist, protocol, *err)
816 * Add the options in optlist to an optionset and then add the optionset
823 add_optionset(sa_group_t group, struct options *optlist, char *proto, int *err)
846 while (optlist != NULL) {
848 prop = sa_get_property(optionset, optlist->optname);
854 if (optlist->optvalue != NULL) {
855 prop = sa_create_property(optlist->optname,
856 optlist->optvalue);
865 optlist->optname,
875 optlist->optname,
884 ret = sa_update_property(prop, optlist->optvalue);
888 "property %s: %s\n"), optlist->optname,
894 optlist = optlist->next;
1195 struct options *optlist = NULL;
1225 ret = add_opt(&optlist, optarg, 0);
1281 if (protocol == NULL && optlist != NULL) {
1290 if (optlist != NULL)
1291 ret = chk_opt(optlist, 0, protocol);
1324 /* check protocol vs optlist */
1325 if (optlist != NULL) {
1327 ret = valid_options(handle, optlist, protocol,
1353 if (optlist != NULL) {
1354 (void) add_optionset(group, optlist, protocol,
1396 free_opt(optlist);
3526 * add_security(group, sectype, optlist, proto, *err)
3534 struct options *optlist, char *proto, int *err)
3557 while (optlist != NULL) {
3559 prop = sa_get_property(security, optlist->optname);
3565 if (optlist->optvalue != NULL) {
3566 prop = sa_create_property(optlist->optname,
3567 optlist->optvalue);
3576 optlist->optname,
3587 optlist->optname,
3588 optlist->optvalue,
3597 ret = sa_update_property(prop, optlist->optvalue);
3600 optlist = optlist->next;
3656 * basic_set(groupname, optlist, protocol, sharepath, rsrcname, dryrun)
3672 basic_set(sa_handle_t handle, char *groupname, struct options *optlist,
3745 ret = valid_options(handle, optlist, protocol,
3749 change |= add_optionset(share, optlist,
3752 change |= add_optionset(group, optlist,
3759 free_opt(optlist);
3783 * space_set(groupname, optlist, protocol, sharepath, dryrun)
3791 space_set(sa_handle_t handle, char *groupname, struct options *optlist,
3833 ret = valid_options(handle, optlist, protocol,
3838 optlist, protocol, &ret);
3841 optlist, protocol, &ret);
3851 free_opt(optlist);
3891 struct options *optlist = NULL;
3921 ret = add_opt(&optlist, optarg, 0);
3986 if (optlist != NULL)
3987 ret = chk_opt(optlist, optset != NULL, protocol);
3989 if (optind >= argc || (optlist == NULL && optset == NULL) ||
3999 if (optlist == NULL) {
4026 ret = basic_set(handle, groupname, optlist, protocol,
4029 ret = space_set(handle, groupname, optlist, protocol,
4040 * remove_options(group, optlist, proto, *err)
4047 remove_options(sa_group_t group, struct options *optlist,
4058 for (cur = optlist; cur != NULL; cur = cur->next) {
4077 * valid_unset(group, optlist, proto)
4079 * Sanity check the optlist to make sure they can be removed. Issue an
4084 valid_unset(sa_group_t group, struct options *optlist, char *proto)
4093 for (cur = optlist; cur != NULL; cur = cur->next) {
4107 * valid_unset_security(group, optlist, proto)
4109 * Sanity check the optlist to make sure they can be removed. Issue an
4114 valid_unset_security(sa_group_t group, struct options *optlist, char *proto,
4126 for (cur = optlist; cur != NULL; cur = cur->next) {
4146 * remove_security(group, optlist, proto)
4153 struct options *optlist, char *proto, int *err)
4165 while (optlist != NULL) {
4167 prop = sa_get_property(security, optlist->optname);
4174 optlist = optlist->next;
4192 * basic_unset(groupname, optlist, protocol, sharepath, rsrcname, dryrun)
4198 basic_unset(sa_handle_t handle, char *groupname, struct options *optlist,
4261 optlist, protocol);
4266 change |= remove_options(share, optlist,
4282 optlist, protocol, &ret);
4296 free_opt(optlist);
4316 * space_unset(groupname, optlist, protocol, sharepath, dryrun)
4321 space_unset(sa_handle_t handle, char *groupname, struct options *optlist,
4345 optlist, protocol, sectype);
4348 if (optlist != NULL) {
4353 sectype, optlist, protocol, &ret);
4367 optlist, protocol, &ret);
4392 free_opt(optlist);
4426 struct options *optlist = NULL;
4456 ret = add_opt(&optlist, optarg, 1);
4528 if (optlist != NULL)
4529 ret = chk_opt(optlist, optset != NULL, protocol);
4531 if (optind >= argc || (optlist == NULL && optset == NULL) ||
4541 if (optlist == NULL) {
4564 ret = basic_unset(handle, groupname, optlist, protocol,
4567 ret = space_unset(handle, groupname, optlist, protocol,