[Bug 10568] New: --copy-links Fails if link name has more than 32 chars

samba-bugs at samba.org samba-bugs at samba.org
Sat Apr 26 10:24:04 MDT 2014


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

           Summary: --copy-links Fails if link name has more than 32 chars
           Product: rsync
           Version: 3.0.4
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: levy.david at gmail.com
         QAContact: rsync-qa at samba.org


Created attachment 9879
  --> https://bugzilla.samba.org/attachment.cgi?id=9879
strace output when running rsync -L

Having a link with a name exceeding 32 characters fails to transform symlink
into referent file/dir.

Example of links which fail to convert to referent files:

armedia at vmelr01:/ardome/media/kf/kf1/2014/03/25/1100140325029584406/ardok-index>
l
total 1024
drwxr-xr-x 2 armedia ardome 2141 Apr 26 13:16 ./
drwxr-xr-x 3 armedia ardome 2054 Apr 26 00:16 ../
lrwxrwxrwx 1 armedia ardome   91 Apr 26 12:14 0830348-PULSERASROJASCAP1-Y.data
->
/ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/0830348-PULSERASROJASCAP1-Y.data
lrwxrwxrwx 1 armedia ardome   92 Apr 26 13:16 0830348-PULSERASROJASCAP1-Y.index
->
/ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/0830348-PULSERASROJASCAP1-Y.index


RESULT:
armedia at vmelr01:/ardome/media/kf/kf1/2014/03/25/1100140325029584406/ardok-index>
l
total 3584
drwxr-xr-x 2 armedia ardome    2147 Apr 26 13:17 ./
drwxr-xr-x 3 armedia ardome    2054 Apr 26 00:16 ../
lrwxrwxrwx 1 armedia ardome      91 Apr 26 12:14
0830348-PULSERASROJASCAP1-Y.data ->
/ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/0830348-PULSERASROJASCAP1-Y.data
-rw-r--r-- 1 armedia ardome 2504142 Apr 26 13:17
0830348-PULSERASROJASCAP1-Y.index


File exceeding 32 chars gets transformed into file with less than 32 chars,
check file sizes.
in example:
- 0830348-PULSERASROJASCAP1-Y.index has been transformed to wrong file
0830348-PULSERASROJASCAP1-Y.data instead.

Original files being linked size
armedia at vmelr01:/ardome/media/kf/kf1/2014/03/25/1100140325029584406/ardok-index>
l /ARDOMEMOUNTS/media/kf//kf0/2014/03/25/1100140325029584406/
total 3040
drwxrwxrwx   2 armedia ardome    8192 Mar 25 03:49 ./
drwxrwxrwx 304 armedia ardome   24576 Mar 25 23:56 ../
-rw-rw-rw-   1 armedia ardome 2504142 Mar 25 04:34
0830348-PULSERASROJASCAP1-Y.data
-rw-rw-rw-   1 armedia ardome  566792 Apr  7 16:04
0830348-PULSERASROJASCAP1-Y.index  


STRACE ATTCHED.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list