Lines Matching defs:idmap_domain_info
48 struct idmap_domain_info {
52 struct idmap_domain_info *next;
293 struct idmap_domain_info *dom)
310 struct idmap_domain_info *dom;
311 struct idmap_domain_info *next;
315 next = ctx->idmap_domain_info;
394 struct idmap_domain_info *dom;
436 for (dom = ctx->idmap_domain_info; dom != NULL; dom = dom->next) {
540 struct idmap_domain_info *dom;
544 for (dom = ctx->idmap_domain_info; dom != NULL; dom = dom->next) {
564 idmap_error_code dom_check_collision(struct idmap_domain_info *dom_list,
565 struct idmap_domain_info *new_dom)
567 struct idmap_domain_info *dom;
709 struct idmap_domain_info *dom = NULL;
731 dom = ctx->alloc_func(sizeof(struct idmap_domain_info), ctx->alloc_pvt);
735 memset(dom, 0, sizeof(struct idmap_domain_info));
765 err = dom_check_collision(ctx->idmap_domain_info, dom);
770 dom->next = ctx->idmap_domain_info;
771 ctx->idmap_domain_info = dom;
803 ctx->idmap_domain_info->auto_add_ranges = false;
816 ctx->idmap_domain_info->auto_add_ranges = false;
823 &ctx->idmap_domain_info->helpers);
825 ctx->idmap_domain_info->auto_add_ranges = true;
826 ctx->idmap_domain_info->helpers_owner = true;
833 ctx->idmap_domain_info->auto_add_ranges = false;
836 ctx->idmap_domain_info->cb = cb;
837 ctx->idmap_domain_info->pvt = pvt;
956 struct idmap_domain_info *parent,
961 struct idmap_domain_info *it;
975 it = ctx->idmap_domain_info;
1017 struct idmap_domain_info *matched_dom,
1059 struct idmap_domain_info *idmap_domain_info;
1060 struct idmap_domain_info *matched_dom = NULL;
1070 idmap_domain_info = ctx->idmap_domain_info;
1077 while (idmap_domain_info != NULL) {
1079 if (is_sid_from_dom(idmap_domain_info->sid, sid, &dom_len)) {
1081 if (idmap_domain_info->external_mapping == true) {
1089 if (comp_id(&idmap_domain_info->range_params, rid, _id)) {
1093 matched_dom = idmap_domain_info;
1096 idmap_domain_info = idmap_domain_info->next;
1110 struct idmap_domain_info *idmap_domain_info;
1120 if (ctx->idmap_domain_info == NULL) {
1124 idmap_domain_info = ctx->idmap_domain_info;
1130 while (idmap_domain_info != NULL) {
1131 if (idmap_domain_info->sid != NULL) {
1132 dom_len = strlen(idmap_domain_info->sid);
1134 && strncmp(sid, idmap_domain_info->sid, dom_len) == 0) {
1136 if (id >= idmap_domain_info->range_params.min_id
1137 && id <= idmap_domain_info->range_params.max_id) {
1145 idmap_domain_info = idmap_domain_info->next;
1184 struct idmap_domain_info *idmap_domain_info;
1190 idmap_domain_info = ctx->idmap_domain_info;
1192 while (idmap_domain_info != NULL) {
1193 if (id_is_in_range(id, &idmap_domain_info->range_params, &rid)) {
1195 if (idmap_domain_info->external_mapping == true
1196 || idmap_domain_info->sid == NULL) {
1200 return generate_sid(ctx, idmap_domain_info->sid, rid, _sid);
1203 idmap_domain_info = idmap_domain_info->next;
1207 idmap_domain_info = ctx->idmap_domain_info;
1208 while (idmap_domain_info != NULL) {
1210 for (struct idmap_range_params *it = idmap_domain_info->helpers;
1214 if (idmap_domain_info->helpers_owner == false) {
1221 if (idmap_domain_info->external_mapping == true
1222 || idmap_domain_info->sid == NULL) {
1226 err = spawn_dom(ctx, idmap_domain_info, it);
1231 return generate_sid(ctx, idmap_domain_info->sid, rid, _sid);
1235 idmap_domain_info = idmap_domain_info->next;
1520 struct idmap_domain_info *idmap_domain_info;
1530 if (ctx->idmap_domain_info == NULL) {
1534 idmap_domain_info = ctx->idmap_domain_info;
1536 while (idmap_domain_info != NULL) {
1537 if (idmap_domain_info->sid != NULL) {
1538 len = strlen(idmap_domain_info->sid);
1542 && strncmp(dom_sid, idmap_domain_info->sid, len) == 0) {
1544 *has_algorithmic_mapping = !idmap_domain_info->external_mapping;
1550 idmap_domain_info = idmap_domain_info->next;
1561 struct idmap_domain_info *idmap_domain_info;
1569 if (ctx->idmap_domain_info == NULL) {
1573 idmap_domain_info = ctx->idmap_domain_info;
1575 while (idmap_domain_info != NULL) {
1576 if (idmap_domain_info->name != NULL
1577 && strcmp(dom_name, idmap_domain_info->name) == 0) {
1579 *has_algorithmic_mapping = !idmap_domain_info->external_mapping;
1583 idmap_domain_info = idmap_domain_info->next;