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

Function send_msg_success

io.c:1071–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069}
1070
1071void send_msg_success(const char *fname, int num)
1072{
1073 if (local_server) {
1074 STRUCT_STAT st;
1075
1076 if (DEBUG_GTE(IO, 1))
1077 rprintf(FINFO, "[%s] send_msg_success(%d)\n", who_am_i(), num);
1078
1079 if (stat(fname, &st) < 0)
1080 memset(&st, 0, sizeof (STRUCT_STAT));
1081 SIVAL(num_dev_ino_buf, 0, num);
1082 SIVAL64(num_dev_ino_buf, 4, st.st_dev);
1083 SIVAL64(num_dev_ino_buf, 4+8, st.st_ino);
1084 send_msg(MSG_SUCCESS, num_dev_ino_buf, sizeof num_dev_ino_buf, -1);
1085 } else
1086 send_msg_int(MSG_SUCCESS, num);
1087}
1088
1089static void got_flist_entry_status(enum festatus status, int ndx)
1090{

Callers 5

hard_link_checkFunction · 0.85
finish_hard_linkFunction · 0.85
recv_generatorFunction · 0.85
handle_delayed_updatesFunction · 0.85
recv_filesFunction · 0.85

Calls 7

SIVALFunction · 0.85
SIVAL64Function · 0.85
send_msgFunction · 0.85
send_msg_intFunction · 0.85
rprintfFunction · 0.70
who_am_iFunction · 0.70
statClass · 0.50

Tested by

no test coverage detected