Lines Matching refs:proto
417 * excluded_protocol(share, proto)
425 excluded_protocol(sa_share_t share, char *proto)
435 if (strcmp(token, proto) == 0) {
726 char *proto;
736 proto = sa_get_optionset_attr(optionset, "type");
739 proto ? proto : "default");
745 proto ? proto : "default", index);
752 if (proto != NULL)
753 sa_free_attr_string(proto);
776 char *proto;
782 proto = sa_get_security_attr(security, "type");
784 len = snprintf(oname, len, "%s_%s_%s", id, proto ? proto : "default",
786 if (proto != NULL)
787 sa_free_attr_string(proto);
1640 char *proto;
1641 proto = sa_get_optionset_attr(optionset,
1643 if (proto != NULL) {
1644 if (!excluded_protocol(share, proto)) {
1645 ret = sa_proto_share(proto,
1650 sa_free_attr_string(proto);
1690 char *proto;
1692 proto = sa_get_optionset_attr(optionset, "type");
1693 if (proto != NULL) {
1694 err = sa_proto_unshare(share, proto, path);
1697 sa_free_attr_string(proto);
2303 * sa_get_optionset(group, proto)
2310 sa_get_optionset(void *group, char *proto)
2319 if (proto != NULL) {
2321 xmlStrcmp(value, (xmlChar *)proto) == 0) {
2359 * sa_get_security(group, sectype, proto)
2368 sa_get_security(sa_group_t group, char *sectype, char *proto)
2376 if (proto != NULL) {
2380 xmlStrcmp(value, (xmlChar *)proto) != 0)) {
2600 * sa_create_optionset(group, proto)
2607 sa_create_optionset(sa_group_t group, char *proto)
2615 optionset = sa_get_optionset(group, proto);
2671 sa_set_optionset_attr(optionset, "type", proto);
2879 * sa_create_security(group, sectype, proto)
2882 * proto). Security is left over from a pure NFS implementation. The
2886 sa_create_security(sa_group_t group, char *sectype, char *proto)
2902 security = sa_get_security(group, sectype, proto);
2911 sa_set_security_attr(security, "type", proto);
3246 char *proto;
3252 proto = sa_get_optionset_attr(object, "type");
3253 if ((ret = sa_valid_property(handle, object, proto,
3258 if (proto != NULL)
3259 sa_free_attr_string(proto);
3262 if (proto != NULL)
3263 sa_free_attr_string(proto);
3438 char *proto;
3440 proto = sa_get_optionset_attr(propset, "type");
3441 if ((sa_proto_get_featureset(proto) & SA_FEATURE_HAS_SECTIONS) == 0) {
3442 if (proto != NULL)
3443 sa_free_attr_string(proto);
3465 if (proto != NULL)
3466 sa_free_attr_string(proto);
3488 char *proto;
3490 proto = sa_get_optionset_attr(prop, "type");
3491 if ((sa_proto_get_featureset(proto) & SA_FEATURE_HAS_SECTIONS) == 0) {
3492 if (proto != NULL)
3493 sa_free_attr_string(proto);
3516 if (proto != NULL)
3517 sa_free_attr_string(proto);
3610 char *proto;
3615 proto = sa_get_optionset_attr(propset, "type");
3616 if (proto != NULL) {
3621 ret = sa_proto_set_property(proto, prop);
3622 sa_free_attr_string(proto);
3647 * sa_create_protocol_properties(proto)
3653 sa_create_protocol_properties(char *proto)
3659 (void) xmlSetProp(node, (xmlChar *)"type", (xmlChar *)proto);
4233 char *proto;
4243 proto = sa_get_property_attr(prop, "type");
4244 if (proto == NULL) {
4248 err = sa_proto_share_resource(proto, resource);
4251 sa_free_attr_string(proto);
4293 char *proto;
4303 proto = sa_get_property_attr(prop, "type");
4304 if (proto == NULL) {
4308 err = sa_proto_unshare_resource(proto, resource);
4313 err = sa_disable_share(parent, proto);
4319 sa_free_attr_string(proto);