Lines Matching refs:proto

63  * has_protocol(group, proto)
293 * add_list(list, item, data, proto)
299 add_list(struct list *listp, void *item, void *data, char *proto)
308 new->proto = proto;
525 * enable_group(group, updateproto, notify, proto)
534 enable_group(sa_group_t group, char *updateproto, int notify, char *proto)
539 if (!has_protocol(group, proto))
548 notify_or_enable_share(share, proto);
550 (void) sa_enable_share(share, proto);
658 enable, work->proto);
667 work->proto);
701 * chk_opt(optlistp, security, proto)
709 chk_opt(struct options *optlistp, int security, char *proto)
722 if (sa_is_security(optname, proto)) {
781 valid_options(sa_handle_t handle, struct options *optlist, char *proto,
791 parent = sa_get_optionset(object, proto);
793 parent = sa_get_security(object, sec, proto);
803 (ret = sa_valid_property(handle, parent, proto, prop)) !=
823 add_optionset(sa_group_t group, struct options *optlist, char *proto, int *err)
830 optionset = sa_get_optionset(group, proto);
832 optionset = sa_create_optionset(group, proto);
859 optionset, proto, prop);
1681 char *proto;
1700 proto = sa_get_optionset_attr(optionset, "type");
1701 if (proto != NULL) {
1704 buff = strndupr(buff, proto, &buffsize);
1705 sa_free_attr_string(proto);
1787 char *proto;
1803 proto = group_proto(group);
1804 if (proto != NULL) {
1806 (char *)proto);
1807 free(proto);
1820 * out_properties(optionset, proto, sec)
1829 out_properties(sa_optionset_t optionset, char *proto, char *sec)
1837 (void) printf(" %s=(", proto ? proto : gettext("all"));
1839 (void) printf(" %s:%s=(", proto ? proto : gettext("all"), sec);
2025 * show_share(share, verbose, properties, proto, iszfs, sharepath)
2033 show_share(sa_share_t share, int verbose, int properties, char *proto,
2100 show_properties(share, proto, "\t");
2143 show_properties(resource, proto, "\t");
2154 show_properties(share, proto, "\t");
2160 * show_group(group, verbose, properties, proto, subgroup)
2166 show_group(sa_group_t group, int verbose, int properties, char *proto,
2177 if (proto != NULL && !has_protocol(group, proto)) {
2199 show_properties(group, proto, "");
2207 show_group(zgroup, verbose, properties, proto,
2222 show_share(share, verbose, properties, proto,
2505 char *proto;
2507 proto = sa_get_optionset_attr(optionset, "type");
2508 if (proto != NULL) {
2511 features = sa_proto_get_featureset(proto);
2513 sa_free_attr_string(proto);
2516 sa_free_attr_string(proto);
3526 * add_security(group, sectype, optlist, proto, *err)
3534 struct options *optlist, char *proto, int *err)
3541 sectype = sa_proto_space_alias(proto, sectype);
3542 security = sa_get_security(group, sectype, proto);
3544 security = sa_create_security(group, sectype, proto);
3570 security, proto, prop);
4040 * remove_options(group, optlist, proto, *err)
4048 char *proto, int *err)
4056 optionset = sa_get_optionset(group, proto);
4077 * valid_unset(group, optlist, proto)
4084 valid_unset(sa_group_t group, struct options *optlist, char *proto)
4091 optionset = sa_get_optionset(group, proto);
4107 * valid_unset_security(group, optlist, proto)
4114 valid_unset_security(sa_group_t group, struct options *optlist, char *proto,
4123 sec = sa_proto_space_alias(proto, sectype);
4124 security = sa_get_security(group, sec, proto);
4146 * remove_security(group, optlist, proto)
4153 struct options *optlist, char *proto, int *err)
4159 sectype = sa_proto_space_alias(proto, sectype);
4160 security = sa_get_security(group, sectype, proto);
4710 * disable_group(group, proto)
4718 disable_group(sa_group_t group, char *proto)
4727 if (!has_protocol(group, proto))
4733 ret = sa_disable_share(share, proto);
4772 work->proto);
4775 ret = disable_group(group, work->proto);
5170 * remove_all_options(share, proto)
5176 remove_all_options(sa_share_t share, char *proto)
5182 optionset = sa_get_optionset(share, proto);
5207 if (strcmp(type, proto) == 0)
5225 format_legacy_path(char *buff, int buffsize, char *proto, char *cmd)
5229 err = snprintf(buff, buffsize, "/usr/lib/fs/%s/%s", proto, cmd);
5237 * check_legacy_cmd(proto, cmd)
5239 * Check to see if the cmd exists in /usr/lib/fs/<proto>/<cmd> and is
5258 * run_legacy_command(proto, cmd, argv)
5285 * out_share(out, group, proto)
5292 out_share(FILE *out, sa_group_t group, char *proto)
5303 if (proto != NULL && sa_get_optionset(group, proto) == NULL)
5306 if (proto == NULL)
5307 proto = "nfs";
5313 if (proto != NULL && strcmp(proto, "nfs") != 0)
5347 (void) snprintf(shareopts, MAXNAMLEN, "shareopts-%s", proto);
5354 soptions = sa_proto_legacy_format(proto, share, 1);
5387 * output_legacy_file(out, proto)
5395 output_legacy_file(FILE *out, char *proto, sa_handle_t handle)
5419 out_share(out, zgroup, proto);
5422 out_share(out, group, proto);
5914 "create [-nvh] [-P proto [-p property=value]] group");
5917 ret = gettext("delete [-nvh] [-P proto] [-f] group");
5926 ret = gettext("list [-vh] [-P proto]");
5938 ret = gettext("set [-nvh] -P proto [-S optspace] "
5943 ret = gettext("set-security [-nvh] -P proto -S security-type "
5951 ret = gettext("show [-pvxh] [-P proto] [group ...]");
5958 ret = gettext("start [-vh] [-P proto] {-a | group ...}");
5961 ret = gettext("stop [-vh] [-P proto] {-a | group ...}");
5964 ret = gettext("unset [-nvh] -P proto [-S optspace] "
5968 ret = gettext("unset-security [-nvh] -P proto "
5980 * sa_lookup(cmd, proto)
5982 * Lookup the sub-command. proto isn't currently used, but it may
5986 sa_lookup(char *cmd, char *proto)
5991 proto = proto;
6003 sub_command_help(char *proto)
6007 proto = proto;