Turn the xattr data in stat_x into cached xattr data, setting the index * values in the file struct. */
| 879 | /* Turn the xattr data in stat_x into cached xattr data, setting the index |
| 880 | * values in the file struct. */ |
| 881 | void cache_tmp_xattr(struct file_struct *file, stat_x *sxp) |
| 882 | { |
| 883 | int ndx; |
| 884 | |
| 885 | if (!sxp->xattr) |
| 886 | return; |
| 887 | |
| 888 | if (prior_xattr_count == (size_t)-1) |
| 889 | prior_xattr_count = rsync_xal_l.count; |
| 890 | ndx = find_matching_xattr(sxp->xattr); |
| 891 | if (ndx < 0) |
| 892 | rsync_xal_store(sxp->xattr); /* adds item to rsync_xal_l */ |
| 893 | |
| 894 | F_XATTR(file) = ndx; |
| 895 | } |
| 896 | |
| 897 | void uncache_tmp_xattrs(void) |
| 898 | { |
no test coverage detected