Let's keep some interesting patches in CVS until we decide if they're good
[rsync/rsync-patches.git] / jos-solaris-sizet.diff
1 From rsync-admin@lists.samba.org Wed Mar 13 17:38:07 2002
2 Return-Path: <rsync-admin@lists.samba.org>
3 Delivered-To: mbp@samba.org
4 Received: from va.samba.org (localhost [127.0.0.1])
5         by lists.samba.org (Postfix) with ESMTP
6         id 3CE014420; Wed, 13 Mar 2002 17:38:06 -0800 (PST)
7 Delivered-To: rsync@lists.samba.org
8 Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
9         by lists.samba.org (Postfix) with ESMTP id 3C43E43FE
10         for <rsync@lists.samba.org>; Wed, 13 Mar 2002 17:37:20 -0800 (PST)
11 Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
12         by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id RAA08864;
13         Wed, 13 Mar 2002 17:37:14 -0800 (PST)
14 Received: from goodluck.Eng.Sun.COM (goodluck.Eng.Sun.COM [129.144.28.81])
15         by engmail3.Eng.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.1p1) with ESMTP id RAA25195;
16         Wed, 13 Mar 2002 17:37:14 -0800 (PST)
17 Received: from goodluck (goodluck [129.144.28.81])
18         by goodluck.Eng.Sun.COM (8.9.3+Sun/8.9.1) with SMTP id RAA05041;
19         Wed, 13 Mar 2002 17:37:13 -0800 (PST)
20 Message-Id: <200203140137.RAA05041@goodluck.Eng.Sun.COM>
21 From: Jennifer Lu <mou@goodluck.Eng.Sun.COM>
22 Reply-To: Jennifer Lu <mou@goodluck.Eng.Sun.COM>
23 Subject: Re: map_ptr warning
24 To: rsync@lists.samba.org, cmount@nortelnetworks.com
25 MIME-Version: 1.0
26 Content-Type: TEXT/plain; charset=us-ascii
27 Content-MD5: pjY7k5RvgQaUX4EBLt+diQ==
28 X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.4 SunOS 5.7 sun4u sparc 
29 Sender: rsync-admin@lists.samba.org
30 Errors-To: rsync-admin@lists.samba.org
31 X-BeenThere: rsync@lists.samba.org
32 X-Mailman-Version: 2.0.8
33 Precedence: bulk
34 List-Help: <mailto:rsync-request@lists.samba.org?subject=help>
35 List-Post: <mailto:rsync@lists.samba.org>
36 List-Subscribe: <http://lists.samba.org/mailman/listinfo/rsync>,
37         <mailto:rsync-request@lists.samba.org?subject=subscribe>
38 List-Id: rsync user list <rsync.lists.samba.org>
39 List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/rsync>,
40         <mailto:rsync-request@lists.samba.org?subject=unsubscribe>
41 List-Archive: <http://lists.samba.org/pipermail/rsync/>
42 Date: Wed, 13 Mar 2002 17:37:13 -0800 (PST)
43 Status: RO
44 Content-Length: 2455
45 Lines: 69
46
47
48
49 Charles,
50
51
52 > Delivered-To: rsync@lists.samba.org
53 > From: "Charles Mount" <cmount@nortelnetworks.com>
54 > To: rsync@lists.samba.org
55 > Subject: map_ptr warning
56 > MIME-Version: 1.0
57 > X-BeenThere: rsync@lists.samba.org
58 > X-Mailman-Version: 2.0.8
59 > List-Help: <mailto:rsync-request@lists.samba.org?subject=help>
60 > List-Post: <mailto:rsync@lists.samba.org>
61 > List-Subscribe: <http://lists.samba.org/mailman/listinfo/rsync>, 
62 <mailto:rsync-request@lists.samba.org?subject=subscribe>
63 > List-Id: rsync user list <rsync.lists.samba.org>
64 > List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/rsync>, 
65 <mailto:rsync-request@lists.samba.org?subject=unsubscribe>
66 > List-Archive: <http://lists.samba.org/pipermail/rsync/>
67 > Date: Wed, 13 Mar 2002 15:50:06 -0600
68
69 > I am using rsync-2.5.2.Solaris251.sparc from your site to synchronize from
70 > an old  Solaris2.5.1 server in Nashville to a new Solaris8 server in
71 > Raleigh.   I will air express tapes and use rsync to update.  I am dealing
72 > with several hundred thousand files and a couple hundred gigabytes of data.
73 > I use "rsync -avx --delete -e ssh old:/foo/bar/ /foo/bar >>2
74 > /var/log/rsynclog" run as a cronjob on the new computer.
75 > Most of the files are transferred correctly.
76 > With a few files I get the file name followed the two copies of the line:
77 > "Warning: unexpected read size of 0 in map_ptr"  in the log file.
78 > In at least most cases, the next pass gives the same message on the same
79 > file.  The file size is sometimes larger on the target and may grow on
80 > additional passes.  If I delete the file on the target the next pass will
81 > normally work correctly.  I see no pattern of where the problem will strike.
82 > In some cases, the problem files are plain text with simple path and file
83 > names.
84 > Any ideas?
85
86 I got the same errors. Upgrade rsync to 2.5.3 with updating batch.c file 
87
88 diff -u -r1.13 batch.c
89 --- batch.c     6 Feb 2002 21:20:48 -0000   1.13
90 +++ batch.c     12 Mar 2002 06:16:49 -0000
91 @@ -396,7 +396,7 @@
92                    struct sum_struct *s)
93  {
94      size_t i;
95 -    unsigned int int_zero = 0;
96 +    size_t int_zero = 0;
97      extern int csum_length;
98  
99      fdb_open = 1;
100      
101 Then, re-compile it. After I compiled the new version of rsync, it works perfectly.
102
103      
104
105 > Thanks,
106 > Charles Mount
107
108
109
110 Jennifer
111
112
113 -- 
114 To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
115 Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
116