search for: inc_recurse

Displaying 13 results from an estimated 13 matches for "inc_recurse".

2007 Oct 16
3
To inc_recurse or not to inc_recurse? [Re: 3.0.0pre2: bookend breakage (2 different errors)]
On 10/15/07, Erik Jan Tromp <betageek@sympatico.ca> wrote: > # The second error > Invalid file index: -101 (-1 - 0) with iflags 0 [receiver] > rsync error: protocol incompatibility (code 2) at rsync.c(273) [receiver=3.0.0pre2] > rsync: connection unexpectedly closed (21 bytes received so far) [generator] > rsync error: error in rsync protocol data stream (code 12) at io.c(596)
2008 Apr 26
1
Bug#477931: rsync: Segfaults syncing the linux kernel archive.
...1 0x0000000000430278 in check_prior (file=0x2ae3c6632e78, gnum=-1, > prev_ndx_p=0x7fffe8617564, flist_p=0x7fffe8617568) at hlink.c:269 > 269 if ((node = hashtable_find(prior_hlinks, gnum, 0)) != NULL) { > (gdb) p prior_hlinks > $1 = (struct hashtable *) 0x0 > (gdb) p inc_recurse > $2 = 0 > > prior_hlinks only seems to be used in case of !inc_recurse, so I > have the feeling that I shouldn't be comming there in the first place. > I'm guessing that the hashtable_find() should be inside an if (inc_recurse) > as all other hashtable_find()'s are a...
2017 Feb 06
0
Missing directory errors not ignored
...so I'd exepct rsync to continue beyond the entry in the list that has no directory instead of aborting here. Both happens properly if the target is local instead of ssh transfer. Looking at the code in generator.c this could be workarounded by providing "-r", since it's in an if (inc_recurse ... ), but then it would sync more than only files specified in the list. Did I overlook an option to ignore these errors or is this something with rsync? Kind regards, Axel PS: Not providing the non existing path in the 'list' file is not an option, since this is actually a way the live...
2007 Sep 23
1
DO NOT REPLY [Bug 4985] New: --list-only shows implied dirs even with --no-implied-dirs
https://bugzilla.samba.org/show_bug.cgi?id=4985 Summary: --list-only shows implied dirs even with --no-implied- dirs Product: rsync Version: 3.0.0 Platform: Other OS/Version: Linux Status: NEW Severity: minor Priority: P3 Component: core AssignedTo: wayned@samba.org
2008 Aug 20
0
Problem with exact moment of issuing transfer log entry for a [recv] action
...@@ -678,8 +678,6 @@ recv_ok = receive_data(f_in, fnamecmp, fd1, st.st_size, fname, fd2, F_LENGTH(file)); - log_item(log_code, file, &initial_stats, iflags, NULL); - if (fd1 != -1) close(fd1); if (close(fd2) < 0) { @@ -719,6 +717,7 @@ if (remove_source_files || inc_recurse || (preserve_hard_links && F_IS_HLINKED(file))) send_msg_int(MSG_SUCCESS, ndx); + log_item(log_code, file, &initial_stats, iflags, NULL); break; case 0: { enum logcode msgtype = redoing ? FERROR_XFER : FWARNING;
2008 Jan 12
3
Rsync 3.0.0pre8 released
...sc The patches directory was released in a separate tar file: http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.0pre8.tar.gz http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.0pre8.tar.gz.asc The following changes were made since pre7 was released: - Fixed a potential hang problem in inc_recurse mode. - Fixed an xattr sending problem when requesting long xattr info from the sender ("internal abbrev error"). - Fixed a bug where --remove-source-file could remove the source when the file was transferred successfully to a temp file, but not successfully renamed into plac...
2008 Jan 12
3
Rsync 3.0.0pre8 released
...sc The patches directory was released in a separate tar file: http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.0pre8.tar.gz http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.0pre8.tar.gz.asc The following changes were made since pre7 was released: - Fixed a potential hang problem in inc_recurse mode. - Fixed an xattr sending problem when requesting long xattr info from the sender ("internal abbrev error"). - Fixed a bug where --remove-source-file could remove the source when the file was transferred successfully to a temp file, but not successfully renamed into plac...
2007 Sep 23
0
A preliminary design for an external DB for rsync
...TATX_STRUCT_PTR); # PATH_PTR: can be NULL, or can specify a desired path prefix. # CHKSUM_PTR: can be NULL. Type matches db_open() flags. # FLAGS: find-any-match, find-a-match-for-hard-linking, require-prefix. The stat info is used to find a good match, and then updated. E.g. could be used by an inc_recurse transfer to find an existing hard-link somewhere in the destination hierarchy. Could be used to try to find a decent basis file or a renamed file. May want some kind of a fuzzy matching option. db_update(FILENAME_PTR, CHKSUM_PTR, FLAGS, STATX_STRUCT_PTR); # CHKSUM_PTR: can be NULL if doing MD4 c...
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...*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,22 +1268,16 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, return; } - if (missing_below >= 0) { - if (F_DEPTH(file) <= missing_below - || (implied_dirs_are_missing && !f_name_has_pref...
2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...+ if (daemon_bwlimit && (!bwlimit || bwlimit > daemon_bwlimit)) bwlimit = daemon_bwlimit; if (bwlimit) { diff --git a/receiver.c b/receiver.c index 6b4b369e..c200ef28 100644 --- a/receiver.c +++ b/receiver.c @@ -28,6 +28,7 @@ extern int am_root; extern int am_server; extern int inc_recurse; extern int log_before_transfer; +extern int log_after_transfer; extern int stdout_format_has_i; extern int logfile_format_has_i; extern int want_xattr_optim; @@ -876,7 +877,9 @@ int recv_files(int f_in, int f_out, char *local_name) /* recv file data */ recv_ok = receive_data(f_in, fnamec...
2011 Mar 17
8
[Bug 8020] New: --acls does not honor --numeric-ids if UIDs do not match
https://bugzilla.samba.org/show_bug.cgi?id=8020 Summary: --acls does not honor --numeric-ids if UIDs do not match Product: rsync Version: 3.0.7 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org
2012 Jun 09
2
[patch] NFSv4/ZFS ACLs
This is a PoC patch for NFSv4/ZFS ACLs. The objective of the patch is that rsync --acls support NFSv4/ZFS ACLs without requiring a new command line option NFSv4 ACLs can't be represented using POSIX draft ACLs, if an NFSv4 ACL is present a separate POSIX draft ACL will not be present and there are new APIs to access NFSv4 ACLs. So we need to distinguish between NFSv4 ACLs and POSIX ACLs in
2008 Feb 15
4
Revised flags patch
...#endif +#ifdef HAVE_CHFLAGS +#define SUPPORT_FLAGS 1 +#endif + /* Find a variable that is either exactly 32-bits or longer. * If some code depends on 32-bit truncation, it will need to * take special action in a "#if SIZEOF_INT32 > 4" section. */ @@ -619,6 +624,7 @@ extern int inc_recurse; extern int uid_ndx; extern int gid_ndx; +extern int fileflags_ndx; extern int acls_ndx; extern int xattrs_ndx; @@ -656,6 +664,7 @@ extern int xattrs_ndx; /* When the associated option is on, all entries will have these present: */ #define F_OWNER(f) REQ_EXTRA(f, uid_ndx)->unum #define...