Lines Matching refs:proto
223 valid_protocol(char *proto) in valid_protocol() argument
228 if (strcmp(proto, plugin->plugin_ops->sa_protocol) == 0) in valid_protocol()
243 char *nodetype, char *proto, char *sectype) in sa_extract_pgroup() argument
260 if (proto != NULL) in sa_extract_pgroup()
261 (void) xmlSetProp(node, (xmlChar *)"type", (xmlChar *)proto); in sa_extract_pgroup()
713 char *proto; in sa_share_props_from_pgroup() local
734 proto = strchr(id, '_'); in sa_share_props_from_pgroup()
735 if (proto == NULL) in sa_share_props_from_pgroup()
737 *proto++ = '\0'; in sa_share_props_from_pgroup()
744 if (*proto == '\0') { in sa_share_props_from_pgroup()
749 sectype = strchr(proto, '_'); in sa_share_props_from_pgroup()
752 if (!valid_protocol(proto)) in sa_share_props_from_pgroup()
810 (void) xmlSetProp(node, (xmlChar *)"type", (xmlChar *)proto); in sa_share_props_from_pgroup()
877 char *proto; in sa_extract_group() local
938 proto = strchr(buff, '_'); in sa_extract_group()
939 if (proto != NULL) { in sa_extract_group()
940 *proto++ = '\0'; in sa_extract_group()
941 sectype = strchr(proto, '_'); in sa_extract_group()
946 is_nfs = strcmp(proto, "nfs") == 0; in sa_extract_group()
969 handle->pg, nodetype, proto, in sa_extract_group()
978 proto); in sa_extract_group()
986 proto = strchr(buff, '_'); in sa_extract_group()
988 if (proto != NULL) { in sa_extract_group()
989 *proto++ = '\0'; in sa_extract_group()
990 sectype = strchr(proto, '_'); in sa_extract_group()
993 if (strcmp(proto, "default") == 0) in sa_extract_group()
994 proto = NULL; in sa_extract_group()
997 handle->pg, "security", proto, sectype); in sa_extract_group()
1820 char *proto; in remove_resources() local
1838 proto = sa_get_optionset_attr(opt, "type"); in remove_resources()
1839 if (proto != NULL) { in remove_resources()
1841 "%s_%s_%s", shareid, proto, id); in remove_resources()
1843 sa_free_attr_string(proto); in remove_resources()
1890 char *proto; in sa_delete_share() local
1891 proto = sa_get_optionset_attr(opt, "type"); in sa_delete_share()
1892 if (proto != NULL) { in sa_delete_share()
1895 proto); in sa_delete_share()
1898 sa_free_attr_string(proto); in sa_delete_share()
1910 char *proto; in sa_delete_share() local
1912 proto = sa_get_security_attr(sec, "type"); in sa_delete_share()
1914 if (proto != NULL && sectype != NULL) { in sa_delete_share()
1916 "%s_%s_%s", shareid, proto, in sa_delete_share()
1923 if (proto != NULL) in sa_delete_share()
1924 sa_free_attr_string(proto); in sa_delete_share()