DO NOT REPLY [Bug 6672] New: mtim.tv_nsec not used when reading time of a file

samba-bugs at samba.org samba-bugs at samba.org
Sat Aug 29 06:46:26 MDT 2009


https://bugzilla.samba.org/show_bug.cgi?id=6672

           Summary: mtim.tv_nsec not used when reading time of a file
           Product: rsync
           Version: 3.0.6
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: antonio at dellelce.com
         QAContact: rsync-qa at samba.org


tv_nsec field in stat structure is not used (source code I checked does not
refer to it) if available. 

This results in files being not "completely" aligned because the original file
will have  nanoseconds set all other destinations have this portion of file
information set to 0.

A pratical example of when this might become a problem is Apache's ETag 
generation, Apache HTTPD correctly reads tv_nsec when available (Solaris,Cygwin
have that feature for example) and puts the value of tv_nsec in the ETag.

A cluster of Etag-generating httpds behind a load balancer would generate all
the same ETag but the "master" source which would have an ETag with no 
microseconds (ETags are limited to microseconds..) so defeating the ETag
purpose.


-- 
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.


More information about the rsync mailing list