search for: fnamecmp_typ

Displaying 10 results from an estimated 10 matches for "fnamecmp_typ".

Did you mean: fnamecmp_type
2010 Apr 14
0
issues with batch mode for incremental backups
...n case where the file to work on is the destination file: --- receiver.c.orig 2010-04-14 00:30:45.000000000 +0000 +++ receiver.c 2010-04-14 00:31:16.000000000 +0000 @@ -654,10 +654,8 @@ break; default: if (fnamecmp_type >= basis_dir_cnt) { - rprintf(FERROR, - "invalid basis_dir index: %d.\n", - fnamecmp_type); - exit_cleanup(RERR_PROTO...
2008 May 08
1
Patch to not modify files in place unless "--inplace" option specified
...} - if (code != FNONE && verbose) + if ((iflags & ITEM_REPORT_CHANGE) && code != FNONE && verbose) rprintf(code, "%s\n", fname); #ifdef SUPPORT_HARD_LINKS if (preserve_hard_links && F_IS_HLINKED(file)) @@ -1776,13 +1800,31 @@ else if (fnamecmp_type == FNAMECMP_FUZZY) ; else if (unchanged_file(fnamecmp, file, &sx.st)) { + /* fnamecmp == fname, fnamecmp_type == FNAMECMP_FNAME */ + int iflags = 0; + if (partialptr) { do_unlink(partialptr); handle_partial_dir(partialptr, PDIR_DELETE); } - set_file_attrs(fname, file, &am...
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
...00000 +1300 @@ -39,6 +39,7 @@ extern int preserve_xattrs; extern int preserve_links; extern int preserve_devices; +extern int write_devices; extern int preserve_specials; extern int preserve_hard_links; extern int preserve_executability; @@ -1733,7 +1734,7 @@ fnamecmp = fname; fnamecmp_type = FNAMECMP_FNAME; - if (statret == 0 && !S_ISREG(sx.st.st_mode)) { + if (statret == 0 && !(S_ISREG(sx.st.st_mode) || (write_devices && IS_DEVICE(sx.st.st_mode)))) { if (delete_item(fname, sx.st.st_mode, del_opts | DEL_FOR_FILE) != 0)...
2006 Oct 21
1
Rsync 2.6.9pre2 tries to read ACLs of nonexistent files
...0 && basis_dir[0] != NULL) { int j = try_dests_reg(file, fname, ndx, fnamecmpbuf, &sx, itemizing, maybe_ATTRS_REPORT, code); if (j == -2) { if (remove_source_files == 1) goto return_with_success; goto cleanup; } if (j >= 0) { fnamecmp = fnamecmpbuf; fnamecmp_type = j; statret = 0; } } real_ret = statret; real_sx = sx; A few lines later, rsync checks for a fuzzy basis file; if it finds one, it sets statret = 0, and that change does /not/ propagate to real_ret. Thus, I'm guessing real_ret and real_sx should actually have been set /before/ the...
2005 Mar 31
2
Some files not logged when using --compare-dest. Bug?
Hi again. I just spotted another peculiarity when inspecting the rsync log. When using --compare-dest, source files that have permissions that differ from the "comparables" are not logged, unless you're using -i. Here's a testing session: $ ls -lR .: total 12 drwxr-xr-x 2 vidar users 4096 2005-03-31 14:16 cmp/ drwxr-xr-x 2 vidar users 4096 2005-03-31 14:23 dst/
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...t file_list *fuzzy_dirlist = NULL; static int need_fuzzy_dirlist = 0; struct file_struct *fuzzy_file = NULL; @@ -1241,7 +1252,6 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, char *fnamecmp, *partialptr, *backupptr = NULL; char fnamecmpbuf[MAXPATHLEN]; uchar fnamecmp_type; - int implied_dirs_are_missing = relative_paths && !implied_dirs && protocol_version < 30; int del_opts = delete_mode || force_delete ? DEL_RECURSE : 0; int is_dir = !S_ISDIR(file->mode) ? 0 : inc_recurse && ndx != cur_flist->ndx_start - 1 ? -1 @@ -1258,...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...!mbuf) + /* easy fix for fast copy of 0 length files -goldor */ + mbuf = map_file(fd, 0, 0, s->blength); + rprintf(FINFO,"sending file descriptor %d\n", mbuf->fd); + send_fd(local_socket, mbuf->fd); + } + write_ndx_and_attrs(f_out, ndx, iflags, fname, file, fnamecmp_type, xname, xlen); write_sum_head(f_xfer, s); @@ -333,7 +345,18 @@ set_compression(fname); - match_sums(f_xfer, s, mbuf, st.st_size); + if (local_server && local_socket && s->count == 0) { + OFF_T offset = 0; + while (offset < st.st_size) { + read_buf(local_soc...
2010 Jun 15
3
about rsyncing of block devices
...S_ISREG(file->mode) || (copy_devices && IS_DEVICE(file->mode)))) { if (solo_file) fname = f_name(file, NULL); rprintf(FINFO, "skipping non-regular file \"%s\"\n", fname); @@ -1733,7 +1734,7 @@ static void recv_generator(char *fname, fnamecmp = fname; fnamecmp_type = FNAMECMP_FNAME; - if (statret == 0 && !S_ISREG(sx.st.st_mode)) { + if (statret == 0 && !(S_ISREG(sx.st.st_mode) || (copy_devices && IS_DEVICE(sx.st.st_mode)))) { if (delete_item(fname, sx.st.st_mode, del_opts | DEL_FOR_FILE) != 0) goto cleanup; statret = -1; @...
2014 Mar 26
11
[Bug 10518] New: rsync hangs (100% cpu)
...\000\000\000\000\000\000\070\322uz\177\000\000\270\023@\000\000\000\000\000\000\000\000\000\001\000\000\000\b\002\000\000\001", '\000' <repeats 11 times>, " \205Lvz\177\000\000\320"... path = 0x18fab50 "/" slash = 0x4699dd "/" fnamecmp_type = 128 '\200' iflags = 32872 xlen = -1 file = 0x7f7a75b07418 phase = 0 max_phase = 2 itemizing = 0 log_code = FINFO f_xfer = 1 save_io_error = 0 ndx = 428 j = 0 #3 0x0000000000423620 in do_server_sender...
2007 Sep 22
0
rsync build on IA64 using icc
...full_fname(fname)); ^ generator.c(1081): remark #981: operands are evaluated in unspecified order rsyserr(FERROR, errno, "mknod %s failed", ^ generator.c(1167): remark #810: conversion from "int" to "unsigned char" may lose significant bits fnamecmp_type = j; ^ generator.c(1235): remark #810: conversion from "unsigned int" to "unsigned char" may lose significant bits SIVAL(numbuf, 0, ndx); ^ generator.c(1235): remark #810: conversion from "unsigned int" to "unsigned char" may l...