Lines Matching defs:proto

325  * remdfsentry(list, path, proto)
332 remdfsentry(xfs_sharelist_t *list, char *path, char *proto)
343 /* if proto is NULL, remove all protocols */
344 if (proto == NULL || (strcmp(item->path, path) == 0 &&
345 (item->fstype != NULL && strcmp(item->fstype, proto) == 0)))
348 (proto == NULL || strcmp(proto, "nfs") == 0))
396 * adddfsentry(list, share, proto)
398 * Add an entry to the dfstab list for share (relative to proto). This
403 adddfsentry(xfs_sharelist_t *list, sa_share_t share, char *proto)
420 item->fstype = strdup(proto);
421 item->options = sa_proto_legacy_format(proto, share, 1);
613 char *proto = sa_get_optionset_attr(
616 if (list != NULL && proto != NULL)
618 proto);
619 if (proto == NULL)
628 proto, share);
632 if (proto != NULL)
633 sa_free_attr_string(proto);
660 * sa_update_legacy(share, proto)
673 sa_update_legacy(sa_share_t share, char *proto)
683 ret = sa_proto_update_legacy(proto, share);
687 features = sa_proto_get_featureset(proto);
712 list = remdfsentry(list, path, proto);
713 list = adddfsentry(list, share, proto);
738 * sa_is_security(optname, proto)
745 sa_is_security(char *optname, char *proto)
748 if (proto != NULL)
749 ret = sa_proto_security_prop(proto, optname);
892 * sa_parse_legacy_options(group, options, proto)
906 sa_parse_legacy_options(sa_group_t group, char *options, char *proto)
928 if (proto != NULL)
929 ret = sa_proto_legacy_opts(proto, group, options);
948 optionset = sa_get_derived_optionset(parent, proto, 1);
949 localoptions = sa_get_optionset(group, proto);
1004 localoptions = sa_get_all_security_types(group, proto, 0);
1014 security = sa_get_security(group, tag, proto);
1646 * sa_valid_property(handle, object, proto, property)
1653 sa_valid_property(sa_handle_t handle, void *object, char *proto,
1658 if (proto != NULL && property != NULL) {
1659 ret = sa_proto_valid_prop(handle, proto, property, object);
1700 * sa_get_derived_optionset(object, proto, hier)
1711 sa_get_derived_optionset(void *object, char *proto, int hier)
1719 newoptionset = sa_get_derived_optionset((void *)group, proto,
1725 sa_set_optionset_attr(newoptionset, "type", proto);
1733 optionset = sa_get_optionset((sa_optionset_t)object, proto);
1789 * sa_get_all_security_types(object, proto, hier)
1800 sa_get_all_security_types(void *object, char *proto, int hier)
1811 options = sa_get_all_security_types((void *)group, proto, hier);
1828 if (strcmp(type, proto) != 0) {
1858 * sa_get_derived_security(object, sectype, proto, hier)
1861 * sectype and proto. If hier is non-zero, walk up the tree to get all
1867 sa_get_derived_security(void *object, char *sectype, char *proto, int hier)
1877 sectype, proto, hier);
1882 sa_set_security_attr(newsecurity, "type", proto);
1891 security = sa_get_security((sa_security_t)object, sectype, proto);
1950 * sa_fillshare(share, proto, sh)
1955 sa_fillshare(sa_share_t share, char *proto, struct share *sh)
2029 if (strcmp(proto, "nfs") != 0)
2034 sh->sh_fstype = strdup(proto);
2035 value = sa_proto_legacy_format(proto, share, 1);
2099 * sa_update_sharetab(share, proto)
2106 sa_update_sharetab(sa_share_t share, char *proto)
2122 (void) sa_fillshare(share, proto, &sh);
2141 * sa_delete_sharetab(handle, path, proto)
2147 sa_delete_sharetab(sa_handle_t handle, char *path, char *proto)
2154 * Both the path and the proto are
2157 if (path != NULL && proto != NULL) {
2160 sh.sh_fstype = proto;