#include "nodemap_internal.h"
/**
- * allocate the lu_idmap structure
+ * Allocate the lu_idmap structure
*
* \param client_id client uid or gid
* \param fs_id filesystem uid or gid
}
/**
- * insert idmap into the proper trees
+ * Insert idmap into the proper trees
*
* \param node_type 0 for UID
* 1 for GID
bck_node = &bck_root->rb_node;
/* find fwd and bck idmap nodes before insertion or
- * replacing to precent split brain idmaps
+ * replacing to prevent split brain idmaps
*/
while (*fwd_node) {
fwd_parent = *fwd_node;
replace = true;
break;
}
-
}
if (!replace) {
replace = true;
break;
}
-
}
}
}
/**
- * delete idmap from the correct nodemap tree
+ * Delete idmap from the correct nodemap tree
*
* \param node_type 0 for UID
* 1 for GID
}
/**
- * search for an existing id in the nodemap trees
+ * Search for an existing id in the nodemap trees.
*
* \param nodemap nodemap trees to search
* \param tree_type 0 for filesystem to client maps