MCPcopy Index your code
hub / github.com/RsyncProject/rsync / cache_tmp_xattr

Function cache_tmp_xattr

xattrs.c:881–895  ·  view source on GitHub ↗

Turn the xattr data in stat_x into cached xattr data, setting the index * values in the file struct. */

Source from the content-addressed store, hash-verified

879/* Turn the xattr data in stat_x into cached xattr data, setting the index
880 * values in the file struct. */
881void 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
897void uncache_tmp_xattrs(void)
898{

Callers 2

copy_valid_pathFunction · 0.85
make_backupFunction · 0.85

Calls 2

find_matching_xattrFunction · 0.85
rsync_xal_storeFunction · 0.85

Tested by

no test coverage detected