map_ptr warning

Jennifer Lu mou at goodluck.Eng.Sun.COM
Thu Mar 14 12:37:13 EST 2002


Charles,


> Delivered-To: rsync at lists.samba.org
> From: "Charles Mount" <cmount at nortelnetworks.com>
> To: rsync at lists.samba.org
> Subject: map_ptr warning
> MIME-Version: 1.0
> X-BeenThere: rsync at lists.samba.org
> X-Mailman-Version: 2.0.8
> List-Help: <mailto:rsync-request at lists.samba.org?subject=help>
> List-Post: <mailto:rsync at lists.samba.org>
> List-Subscribe: <http://lists.samba.org/mailman/listinfo/rsync>, 
<mailto:rsync-request at lists.samba.org?subject=subscribe>
> List-Id: rsync user list <rsync.lists.samba.org>
> List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/rsync>, 
<mailto:rsync-request at lists.samba.org?subject=unsubscribe>
> List-Archive: <http://lists.samba.org/pipermail/rsync/>
> Date: Wed, 13 Mar 2002 15:50:06 -0600
> 
> I am using rsync-2.5.2.Solaris251.sparc from your site to synchronize from
> an old  Solaris2.5.1 server in Nashville to a new Solaris8 server in
> Raleigh.   I will air express tapes and use rsync to update.  I am dealing
> with several hundred thousand files and a couple hundred gigabytes of data.
> I use "rsync -avx --delete -e ssh old:/foo/bar/ /foo/bar >>2
> /var/log/rsynclog" run as a cronjob on the new computer.
> Most of the files are transferred correctly.
> With a few files I get the file name followed the two copies of the line:
> "Warning: unexpected read size of 0 in map_ptr"  in the log file.
> In at least most cases, the next pass gives the same message on the same
> file.  The file size is sometimes larger on the target and may grow on
> additional passes.  If I delete the file on the target the next pass will
> normally work correctly.  I see no pattern of where the problem will strike.
> In some cases, the problem files are plain text with simple path and file
> names.
> Any ideas?

I got the same errors. Upgrade rsync to 2.5.3 with updating batch.c file 

diff -u -r1.13 batch.c
--- batch.c     6 Feb 2002 21:20:48 -0000   1.13
+++ batch.c     12 Mar 2002 06:16:49 -0000
@@ -396,7 +396,7 @@
                   struct sum_struct *s)
 {
     size_t i;
-    unsigned int int_zero = 0;
+    size_t int_zero = 0;
     extern int csum_length;
 
     fdb_open = 1;
     
Then, re-compile it. After I compiled the new version of rsync, it works perfectly.

     
> 
> Thanks,
> Charles Mount
> 
> 

Jennifer





More information about the rsync mailing list