MCPcopy Create free account
hub / github.com/RsyncProject/rsync / handle_skipped_hlink

Function handle_skipped_hlink

generator.c:2072–2090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2070
2071#ifdef SUPPORT_HARD_LINKS
2072static void handle_skipped_hlink(struct file_struct *file, int itemizing,
2073 enum logcode code, int f_out)
2074{
2075 char fbuf[MAXPATHLEN];
2076 int new_last_ndx;
2077 struct file_list *save_flist = cur_flist;
2078
2079 /* If we skip the last item in a chain of links and there was a
2080 * prior non-skipped hard-link waiting to finish, finish it now. */
2081 if ((new_last_ndx = skip_hard_link(file, &cur_flist)) < 0)
2082 return;
2083
2084 file = cur_flist->files[new_last_ndx - cur_flist->ndx_start];
2085 cur_flist->in_progress--; /* undo prior increment */
2086 f_name(file, fbuf);
2087 recv_generator(fbuf, file, new_last_ndx, itemizing, code, f_out);
2088
2089 cur_flist = save_flist;
2090}
2091#endif
2092
2093static void touch_up_dirs(struct file_list *flist, int ndx)

Callers 2

recv_generatorFunction · 0.85
check_for_finished_filesFunction · 0.85

Calls 3

skip_hard_linkFunction · 0.85
f_nameFunction · 0.85
recv_generatorFunction · 0.85

Tested by

no test coverage detected