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

Function skip_hard_link

hlink.c:546–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546int skip_hard_link(struct file_struct *file, struct file_list **flist_p)
547{
548 struct file_list *flist;
549 int prev_ndx;
550
551 file->flags |= FLAG_SKIP_HLINK;
552 if (!(file->flags & FLAG_HLINK_LAST))
553 return -1;
554
555 check_prior(file, F_HL_GNUM(file), &prev_ndx, &flist);
556 if (prev_ndx >= 0) {
557 file = flist->files[prev_ndx - flist->ndx_start];
558 if (file->flags & (FLAG_HLINK_DONE|FLAG_FILE_SENT))
559 return -1;
560 file->flags |= FLAG_HLINK_LAST;
561 *flist_p = flist;
562 }
563
564 return prev_ndx;
565}
566#endif

Callers 1

handle_skipped_hlinkFunction · 0.85

Calls 1

check_priorFunction · 0.85

Tested by

no test coverage detected