Lines Matching defs:mapping
328 * mapping pattern.
350 * through an implicit mapping
384 * check whether part of mapping had to be
429 * the mapping file)
473 * the mapping file)
507 * No explicit mapping found, try implicit mapping
530 * No explicit mapping found, try implicit mapping
1602 const SID *usid, struct MAPPING* const mapping[],
1636 sid = ntfs_find_usid(mapping[MAPUSERS],
1764 const SID *usid, struct MAPPING* const mapping[],
1792 sid = ntfs_find_usid(mapping[MAPUSERS],
1845 const SID *gsid, struct MAPPING* const mapping[],
1878 sid = ntfs_find_gsid(mapping[MAPGROUPS],
2040 * for mapping NFSv4 ACLs to Posix ACLs (draft-ietf-nfsv4-acl-mapping-00.txt)
2041 * More recent versions of the draft (draft-ietf-nfsv4-acl-mapping-05.txt)
2099 static int buildacls_posix(struct MAPPING* const mapping[],
2183 sid = ntfs_find_usid(mapping[MAPUSERS],
2194 sid = ntfs_find_gsid(mapping[MAPUSERS],
2252 usid, mapping, flags, pxace, pset);
2311 mapping,flags,pxace,pset);
2322 mapping,flags,pxace,pset);
2331 mapping,flags,pxace,pset);
2750 char *ntfs_build_descr_posix(struct MAPPING* const mapping[],
2809 aclsz = buildacls_posix(mapping,newattr,
3619 static uid_t find_tenant(struct MAPPING *const mapping[],
3645 xid = ntfs_find_user(mapping[MAPUSERS], &pace->sid);
3669 struct MAPPING *const mapping[],
3780 gid = ntfs_find_group(mapping[MAPGROUPS],&pace->sid);
3786 uid = ntfs_find_user(mapping[MAPUSERS],&pace->sid);
3809 uid = ntfs_find_user(mapping[MAPUSERS],&pace->sid);
3841 gid = ntfs_find_group(mapping[MAPGROUPS],&pace->sid);
3875 uid = ntfs_find_user(mapping[MAPUSERS],&pace->sid);
3888 gid = ntfs_find_group(mapping[MAPGROUPS],&pace->sid);
4193 * Get a single mapping item from buffer
4252 ntfs_log_early_error("Bad mapping item \"%s\"\n",
4267 * Read user mapping file and split into their attribute.
4272 * If an absolute path is provided, the mapping file is assumed
4275 * If a relative path is provided, the mapping file is assumed
4314 * Free memory used to store the user mapping
4318 void ntfs_free_mapping(struct MAPPING *mapping[])
4324 while (mapping[MAPUSERS]) {
4325 user = mapping[MAPUSERS];
4327 group = mapping[MAPGROUPS];
4336 mapping[MAPUSERS] = user->next;
4340 while (mapping[MAPGROUPS]) {
4341 group = mapping[MAPGROUPS];
4344 mapping[MAPGROUPS] = group->next;
4351 * Build the user mapping list
4364 struct MAPPING *mapping;
4387 * to define the implicit mapping pattern
4405 mapping =
4408 if (mapping) {
4409 mapping->sid = sid;
4410 mapping->xid = uid;
4411 mapping->grcnt = 0;
4412 mapping->next = (struct MAPPING*)NULL;
4414 lastmapping->next = mapping;
4416 firstmapping = mapping;
4417 lastmapping = mapping;
4426 * Build the group mapping list
4442 struct MAPPING *mapping;
4473 * second step to define the implicit mapping pattern
4485 mapping = (struct MAPPING*)
4487 if (mapping) {
4488 mapping->sid = sid;
4489 mapping->xid = gid;
4492 mapping->groups =
4493 (gid_t*)&mapping->xid;
4494 mapping->grcnt = 1;
4496 mapping->grcnt = 0;
4499 mapping->next = (struct MAPPING*)NULL;
4501 lastmapping->next = mapping;
4503 firstmapping = mapping;
4504 lastmapping = mapping;