static int process_new(struct sbuf *p1b, FILE *ucfp, const char *currentdata, const char *datadirtmp, const char *deltmppath, struct dpth *dpth, int *resume_partial, struct cntr *cntr, struct config *cconf) { if(*resume_partial && p1b->cmd==CMD_FILE && cconf->librsync && p1b->compression==cconf->compression) { if(resume_partial_new_file(p1b, cntr, currentdata, datadirtmp, deltmppath, dpth, cconf)) return -1; // Burp only transfers one file at a time, so // if there was an interruption, there is only // a possibility of one partial file to resume. *resume_partial=0; } if(filedata(p1b->cmd)) { //logp("need to process new file: %s\n", p1b->path); // Flag the things that need to be sent (to the client) p1b->sendstat++; p1b->sendpath++; } else { new_non_file(p1b, ucfp, p1b->cmd, cntr); } return 0; }
static int process_new(struct sdirs *sdirs, struct conf **cconfs, struct sbuf *p1b, struct manio *ucmanio) { if(!p1b->path.buf) return 0; if(sbuf_is_filedata(p1b) || sbuf_is_vssdata(p1b)) { //logp("need to process new file: %s\n", p1b->path); // Flag the things that need to be sent (to the client) p1b->flags |= SBUF_SEND_STAT; p1b->flags |= SBUF_SEND_PATH; return 0; } return new_non_file(p1b, ucmanio, cconfs); }
static int process_new(struct sdirs *sdirs, struct conf **cconfs, struct sbuf *p1b, struct fzp *ucfp) { if(!p1b->path.buf) return 0; if(cmd_is_filedata(p1b->path.cmd)) { //logp("need to process new file: %s\n", p1b->path); // Flag the things that need to be sent (to the client) p1b->flags |= SBUFL_SEND_STAT; p1b->flags |= SBUFL_SEND_PATH; } else { new_non_file(p1b, ucfp, cconfs); } return 0; }