s->count,s->remainder,s->n,(int)s->flength);
s->sums = (struct sum_buf *)malloc(sizeof(s->sums[0])*s->count);
s->count,s->remainder,s->n,(int)s->flength);
s->sums = (struct sum_buf *)malloc(sizeof(s->sums[0])*s->count);
i,(int)s->sums[i].offset,s->sums[i].len,s->sums[i].sum1);
len -= n1;
i,(int)s->sums[i].offset,s->sums[i].len,s->sums[i].sum1);
len -= n1;
i,s->sums[i].len,(int)s->sums[i].offset,s->sums[i].sum1);
}
i,s->sums[i].len,(int)s->sums[i].offset,s->sums[i].sum1);
}
- fprintf(FERROR,"recv_generator(%s,%d)\n",fname,i);
+ fprintf(FINFO,"recv_generator(%s,%d)\n",fname,i);
- fprintf(FERROR,"mknod(%s,0%o,0x%x)\n",
+ fprintf(FINFO,"mknod(%s,0%o,0x%x)\n",
fname,(int)file->mode,(int)file->rdev);
if (do_mknod(fname,file->mode,file->rdev) != 0) {
fprintf(FERROR,"mknod %s : %s\n",fname,strerror(errno));
fname,(int)file->mode,(int)file->rdev);
if (do_mknod(fname,file->mode,file->rdev) != 0) {
fprintf(FERROR,"mknod %s : %s\n",fname,strerror(errno));
- fprintf(FERROR,"gen mapped %s of size %d\n",fname,(int)st.st_size);
+ fprintf(FINFO,"gen mapped %s of size %d\n",fname,(int)st.st_size);
s = generate_sums(buf,st.st_size,adapt_block_size(file, block_size));
if (verbose > 2)
s = generate_sums(buf,st.st_size,adapt_block_size(file, block_size));
if (verbose > 2)
- fprintf(FERROR,"data recv %d at %d\n",i,(int)offset);
+ fprintf(FINFO,"data recv %d at %d\n",i,(int)offset);
i,len,(int)offset2,(int)offset);
map = map_ptr(buf,offset2,len);
i,len,(int)offset2,(int)offset);
map = map_ptr(buf,offset2,len);
if (remote_version >= 14) {
read_buf(f_in,file_sum2,MD4_SUM_LENGTH);
if (verbose > 2)
if (remote_version >= 14) {
read_buf(f_in,file_sum2,MD4_SUM_LENGTH);
if (verbose > 2)
if (do_unlink(f_name(f)) != 0) {
fprintf(FERROR,"unlink %s : %s\n",f_name(f),strerror(errno));
} else if (verbose) {
if (do_unlink(f_name(f)) != 0) {
fprintf(FERROR,"unlink %s : %s\n",f_name(f),strerror(errno));
} else if (verbose) {
}
} else {
if (do_rmdir(f_name(f)) != 0) {
if (errno != ENOTEMPTY)
fprintf(FERROR,"rmdir %s : %s\n",f_name(f),strerror(errno));
} else if (verbose) {
}
} else {
if (do_rmdir(f_name(f)) != 0) {
if (errno != ENOTEMPTY)
fprintf(FERROR,"rmdir %s : %s\n",f_name(f),strerror(errno));
} else if (verbose) {
if (fd1 != -1 && st.st_size > 0) {
buf = map_file(fd1,st.st_size);
if (verbose > 2)
if (fd1 != -1 && st.st_size > 0) {
buf = map_file(fd1,st.st_size);
if (verbose > 2)
- fprintf(FERROR,"recv mapped %s of size %d\n",fname,(int)st.st_size);
+ fprintf(FINFO,"recv mapped %s of size %d\n",fname,(int)st.st_size);
- fprintf(FERROR,"renaming %s to %s\n",fnametmp,fname);
+ fprintf(FINFO,"renaming %s to %s\n",fnametmp,fname);
- fprintf(FERROR,"redoing %s(%d)\n",fname,i);
+ fprintf(FINFO,"redoing %s(%d)\n",fname,i);
strncpy(fname,file->basedir,MAXPATHLEN-1);
fname[MAXPATHLEN-1] = 0;
if (strlen(fname) == MAXPATHLEN-1) {
strncpy(fname,file->basedir,MAXPATHLEN-1);
fname[MAXPATHLEN-1] = 0;
if (strlen(fname) == MAXPATHLEN-1) {
- fprintf(FERROR,"send_files(%d,%s)\n",i,fname);
+ fprintf(FINFO,"send_files(%d,%s)\n",i,fname);
fprintf(FERROR,"receive_sums failed\n");
return;
}
fd = open(fname,O_RDONLY);
if (fd == -1) {
fprintf(FERROR,"receive_sums failed\n");
return;
}
fd = open(fname,O_RDONLY);
if (fd == -1) {
if (!am_server && verbose)
printf("%s\n",fname+offset);
if (!am_server && verbose)
printf("%s\n",fname+offset);
(int)getpid(),flist->count);
for (i = 0; i < flist->count; i++) {
(int)getpid(),flist->count);
for (i = 0; i < flist->count; i++) {
if (remote_version >= 13) {
/* in newer versions of the protocol the files can cycle through
the system more than once to catch initial checksum errors */
if (remote_version >= 13) {
/* in newer versions of the protocol the files can cycle through
the system more than once to catch initial checksum errors */