samba-bugs@samba.org
2008-Nov-02 13:48 UTC
DO NOT REPLY [Bug 5867] New: rsync with ACLs resets mtime on targets
https://bugzilla.samba.org/show_bug.cgi?id=5867
Summary: rsync with ACLs resets mtime on targets
Product: rsync
Version: 3.0.4
Platform: x86
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: samba@byshenk.net
QAContact: rsync-qa@samba.org
On FreeBSD (v6 and v7), rsync (v3.0.4) with the extented ACLs patch has a
problem.
The ACLs flag works, but when it is used, the mtime of the files on on the
receiving system are set to the current time. This is a bit annoying in
itself, but creates a larger problem because any later rsync actions on the
same files see the files as _different_, meaning that _all_ the files are
recopied -- which more or less defeats the purpose of using rsync.
Yes, I understand that setting ACLs on a file changes the mtime of the file.
But, as rsync is able to (re)set mtimes I would think that this shouldn't
should be an issue when using rsync.
After some searching around, I found some discussion (relating to Macs,
actually) that suggests that the problem is that with the ACLs patch enabled,
rsync modifies the ACLs on the target files _after_ setting the mtime, which
seems to me (at least) to be a bug.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2008-Dec-27 19:13 UTC
DO NOT REPLY [Bug 5867] rsync with ACLs resets mtime on targets
https://bugzilla.samba.org/show_bug.cgi?id=5867
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
------- Comment #1 from wayned@samba.org 2008-12-27 13:13 CST -------
Do you mean the fileflags.diff patch? ACLs are supported by default these days,
though there is also an acls.diff patch that adds a backward-compatible mode
for interfacing with rsync versions prior to 3.0.0.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2008-Dec-28 11:03 UTC
DO NOT REPLY [Bug 5867] rsync with ACLs resets mtime on targets
https://bugzilla.samba.org/show_bug.cgi?id=5867
------- Comment #2 from samba@byshenk.net 2008-12-28 05:03 CST -------
It doesn't seem to matter whether it is default or backward-compatible.
The problem is not with the setting of ACLs itself, but that setting ACLs
changes the new file's mtime.
If I rsync (-avxHA) the dir 'gbyshenk' to the new dir
'gbyshenk_acl', it works,
and the ACLs are copied. But it seems that the mtime has been changed to now
('now' being the time the rsync was run).
This is a problem in and of itself, but also creates a new problem, in that, if
I then re-run rsync, it sees the new files as different than the old files, and
proceeds to copy _everything_ again, rather than only the new/changed files. If
I run rsync (-avxH -- _without_ the -A flag), then rsync behaves as it should.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2009-Jan-25 20:24 UTC
DO NOT REPLY [Bug 5867] rsync with ACLs resets mtime on targets
https://bugzilla.samba.org/show_bug.cgi?id=5867 ------- Comment #3 from timur@FreeBSD.org 2009-01-25 14:24 CST ------- This is a bug/misfeature in the FreeBSD ACLs->UFS2 code. Here is a bit of more discussion about it: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/125739 In general, it should be fixed on a FreeBSD side, but, possibly, rsync can work around it too. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2009-Jan-27 15:46 UTC
DO NOT REPLY [Bug 5867] rsync with ACLs resets mtime on targets
https://bugzilla.samba.org/show_bug.cgi?id=5867
samba@byshenk.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
------- Comment #4 from samba@byshenk.net 2009-01-27 09:46 CST -------
Timur is correct, of course.
My apologies; when I raised this earlier I was advised that it looked to be an
'rsync' problem and I should file the bug here.
Robert Watson has provided some patches to the FreeBSD ffs code that appear to
solve the more general problem, as well as the reported rsync problem.
(I am guessing that 'invalid' is the proper resolution code for this
'bug'.)
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.