Displaying 19 results from an estimated 19 matches for "unchanged_attr".
Did you mean:
unchanged_attrs
2011 Jun 25
1
[Bug 8268] New: Wrong unchanged_attrs test for symlink ownership
https://bugzilla.samba.org/show_bug.cgi?id=8268
Summary: Wrong unchanged_attrs test for symlink ownership
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: matt at matt...
2010 Aug 15
1
DO NOT REPLY [Bug 7622] New: Factor out common logic from itemize and unchanged_attrs functions
https://bugzilla.samba.org/show_bug.cgi?id=7622
Summary: Factor out common logic from itemize and unchanged_attrs
functions
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: matt...
2007 Oct 30
3
Rsync hard-links devices with different mtimes despite -t: expected?
I noticed that rsync is happy to hard-link a device node from a
--link-dest dir even if its mtime differs from that of the source device
node and --times is given. Is this behavior expected? It seems to
break the rule that a difference in preserved attributes disqualifies a
hard link.
To see the behavior, run the following as root:
mkdir src dest basis
mknod src/null c 1 3
sleep 1
mknod
2006 Aug 03
1
Patch to handle ACL differences
...But all the testing I'm doing is for my particular situation: using
--link-dest. The point is to create backup snapshots using --link-dest
which properly preserve/backup ACL changes.
What else - besides --link-dest use - should I do to test this patch
before I post it?
The main change is in unchanged_attrs(), where this now can detect ACL
changes.
Thanks...
Andrew
2008 Feb 16
1
Rsync itemizing "p" even when -p, -E are off
...r consistency with "o" and "g"
itemization, rsync should not itemize differences from a basis file
unless they are significant in light of the options. Thus, at least
when "sxp" represents an alternate basis file, "itemize" should use the
same logic as "unchanged_attrs" to decide whether to itemize "p".
A second issue: the logic in "unchanged_attrs" needs to be extended so
that an executability difference disqualifies hard links when -E is on.
Matt
2008 May 08
1
Patch to not modify files in place unless "--inplace" option specified
...e right place. */
- set_file_attrs(fname, file, &sx, NULL, maybe_ATTRS_REPORT);
+ if (inplace) {
+ if (verbose > 2)
+ rprintf(FINFO, "possibly tweaking attributes of %s\n", fname);
+ set_file_attrs(fname, file, &sx, NULL, maybe_ATTRS_REPORT);
+ } else if (!unchanged_attrs(fname, file, &sx)) {
+ if (verbose > 2)
+ rprintf(FINFO, "recreating %s due to changed attributes\n", fname);
+ goto recreate_symlink;
+ }
if (itemizing)
itemize(fname, file, ndx, 0, &sx, 0, 0, NULL);
#if defined SUPPORT_HARD_LINKS && define...
2019 Mar 07
1
[PATCH] Bug fix for file comparison
...el = 1;
- /* FALL THROUGH */
- case 1:
- if (!unchanged_file(cmpbuf, file, &sxp->st))
- continue;
+ }
+ if (!unchanged_file(cmpbuf, file, &sxp->st))
+ continue;
+ if (match_level < 2) {
best_match = j;
match_level = 2;
- /* FALL THROUGH */
- case 2:
- if (!unchanged_attrs(cmpbuf, file, sxp)) {
- free_stat_x(sxp);
- continue;
- }
- best_match = j;
- match_level = 3;
- break;
}
+ if (!unchanged_attrs(cmpbuf, file, sxp)) {
+ free_stat_x(sxp);
+ continue;
+ }
+ best_match = j;
+ match_level = 3;
break;
} while (basis_dir[++j] != NULL);
2008 Jul 29
7
DO NOT REPLY [Bug 5644] New: Option to recheck basis dirs for existing dest files
https://bugzilla.samba.org/show_bug.cgi?id=5644
Summary: Option to recheck basis dirs for existing dest files
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy:
2011 Apr 09
1
[Bug 8073] New: Regress: 3.0.8 cannot compile on freebsd
...trs':
rsync.c:378: warning: unused parameter `fnamecmp'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c generator.c -o
generator.o
generator.c: In function `delete_item':
generator.c:216: warning: `desc' might be used uninitialized in this function
generator.c: In function `unchanged_attrs':
generator.c:622: warning: unused parameter `fname'
generator.c: In function `itemize':
generator.c:665: warning: unused parameter `fnamecmp'
generator.c: In function `try_dests_non':
generator.c:1112: warning: `type' might be used uninitialized in this function
gcc -I. -I...
2023 May 17
1
[PATCH] Add --omit-{device,special}-times options
Similar to --omit-{dir,link}-times:
--omit-device-times omit device files from --times
--omit-special-times omit sockets and fifos from --times
Also, fix corner case that allows --omit-dir-times to be ignored. See
unchanged_attrs() and recv_generator()'s call to try_dests_non().
Marc.
diff -aNpRruz -X /etc/diff.excludes rsync-3.2.7/generator.c devel-3.2.7/generator.c
--- rsync-3.2.7/generator.c 2022-09-15 11:12:02.000000000 -0600
+++ devel-3.2.7/generator.c 2022-09-15 11:12:02.000000000 -0600
@@ -47,6 +47,8 @@ extern...
2010 Aug 13
26
DO NOT REPLY [Bug 7618] New: symlinks and --link-dest
https://bugzilla.samba.org/show_bug.cgi?id=7618
Summary: symlinks and --link-dest
Product: rsync
Version: 3.0.7
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: the_majkl at seznam.cz
QAContact:
2007 Nov 04
1
DO NOT REPLY [Bug 4561] Add options --tweak, --no-tweak, --no-tweak-hlinked
...ttmccutchen.net 2007-11-04 14:51 CST -------
Created an attachment (id=2960)
--> (https://bugzilla.samba.org/attachment.cgi?id=2960&action=view)
Implementation of --tweak options
Here, finally, is an implementation of the --tweak options! Now that bug 5051
and the omission of mtimes from unchanged_attrs have been fixed, the
implementation is pretty simple; Wayne, perhaps you guessed from the comment
change I inadvertently left in my patch for bug 5051 that this was what I was
up to.
The options seem to work and itemize properly, and there is even a test case.
The clever interaction between --no...
2011 Sep 10
1
Rsync 3.0.9pre2 released
...er (e.g.
if it has no read permission).
- Fix the directory permissions on an implied dot-dir when using
--relative (e.g. /outside/path/././send/path).
- Fixed some too-long sleeping instances when using --bwlimit.
- Fixed when symlink ownership difference-checking gets compiled into
unchanged_attrs().
- Improved the socket-error reporting when multiple protocols fail.
- Fixed a case where a socket error could reference just-freed memory.
- Failing to use a password file that was specified on the command-line
is now a fatal error.
- Fix the non-root updating of directories that don...
2011 Sep 10
1
Rsync 3.0.9pre2 released
...er (e.g.
if it has no read permission).
- Fix the directory permissions on an implied dot-dir when using
--relative (e.g. /outside/path/././send/path).
- Fixed some too-long sleeping instances when using --bwlimit.
- Fixed when symlink ownership difference-checking gets compiled into
unchanged_attrs().
- Improved the socket-error reporting when multiple protocols fail.
- Fixed a case where a socket error could reference just-freed memory.
- Failing to use a password file that was specified on the command-line
is now a fatal error.
- Fix the non-root updating of directories that don...
2016 Jul 25
2
[Bug 12036] New: Multiple --link-dest, --copy-dest, or --compare-dest flags produce incorrect behavior
https://bugzilla.samba.org/show_bug.cgi?id=12036
Bug ID: 12036
Summary: Multiple --link-dest, --copy-dest, or --compare-dest
flags produce incorrect behavior
Product: rsync
Version: 3.1.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component:
2013 Jan 22
0
rsync - using a --files-from list to cut out scanning. How to handle deletions? (fwd)B
...rsion of rsync
which links a file from the link-dest directory rather copying from
source when a file is identical in the source and link-dest directory,
but exists and is different in the destination.)
I was not aware of the issue in the case where the unchanged_file() test
is passed, but not the unchanged_attrs() test, and the potential for
over-writing the attributes in not just the destination, but for all
hard-linked files.
This means that recycling directories, which as Teodor Milkov noted:
> "Such a behaviour (unlink changed files and then hard link to dest dir)
> would be very handy,...
2008 Feb 27
2
DO NOT REPLY [Bug 5287] New: FreeBSD pre10 compilation warnings report
...' might be used uninitialized in this function
rsync.c: In function `set_file_attrs':
rsync.c:343: warning: unused parameter `fnamecmp'
generator.c: In function `delete_item':
generator.c:212: warning: `desc' might be used uninitialized in this function
generator.c: In function `unchanged_attrs':
generator.c:555: warning: unused parameter `fname'
generator.c: In function `itemize':
generator.c:597: warning: unused parameter `fnamecmp'
generator.c: In function `try_dests_non':
generator.c:1021: warning: `type' might be used uninitialized in this function
sender.c:...
2013 Jan 23
0
Changed attributes for a file in destination that is hard linked get propagated to --link-dest directories
...file and attrs
# from the source, but could copy the file in the destination
# and update attrs, and remove the old file
else
# current behaviour
update just the attributes
endif
endif
Or, in the terms used in previous posts:
if ( destination unchanged_file() is true and unchanged_attrs() is false)
....
The test on the link-count is done, since teh new behaviour is needed
only when the target file has a link-count greater than 1.
Regards
Rob. Bell e-mail: Robert.Bell at csiro.au
--
Dr Robert C. Bell, BSc (Hons) PhD
Technical Services Manager
Advanced Scientific C...
2007 Oct 17
3
DO NOT REPLY [Bug 5022] New: FreeBSD 4.11 - Compilation Fails - uidlist.c - gcc2 / gcc3
...d_attrs':
rsync.c:215: warning: `flist' might be used uninitialized in this function
rsync.c: In function `set_file_attrs':
rsync.c:341: warning: unused parameter `fnamecmp'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c generator.c -o
generator.o
generator.c: In function `unchanged_attrs':
generator.c:518: warning: unused parameter `fname'
generator.c: In function `itemize':
generator.c:549: warning: unused parameter `fnamecmp'
generator.c: In function `try_dests_non':
generator.c:943: warning: `type' might be used uninitialized in this function
gcc -I. -I....