librsync/rdiff release 0.9.2

2001-03-12 Thread Martin Pool

A new release, 0.9.2 of librsync/rdiff is now available for download

  http://rproxy.sourceforge.net/download.html

This version does genuine and (hopefully) reliable delta-compression
of files: a viable alternative to diff/patch and xdelta, and a way to
do rsync over sneakernet or email.

There are still some optimizations to be done, but I hope that at this
stage both the programming and the command line interface are in their
final form.  I'd particularly welcome bug reports about portability,
crashes/corruption, or documentation.

--
Martin Pool




Re: rsync hard link problems

2001-03-12 Thread Dave Dykstra

On Fri, Mar 09, 2001 at 04:34:53PM -0800, sarahwhispers wrote:
 
 Hi, 
 
 I'm having difficulty using rsync to synchronize 
 hard-linked files.  In some cases, it seems to 
 transfer a hard-linked file again even though 
 the one of the other hard-linked files has already 
 been copied.  
...
 The *end* result is always correct, but in the first
 case, 1bar gets sent across, but in the second case 
 3bar is not sent.  It seems to have to do with the 
 fact that 1 comes before 2 and 3 comes after 2.
 
 I want to use rsync to transfer large trees of files 
 with lots of hard links in them. My plan is to start 
 with one or two directories in the tree, then expand 
 to cover more and eventually all.
 
 Obviously if I just started by copying all the files at
 once, it would be ok, but that's not currently an
 option.
 
 Anyone out there know what's going wrong?  Can I do 
 something different to fix it?  Is it a bug?  


I'm afraid that's just the way it is.  Rsync can only manage hard links
between files that are in the same run, and it just keeps tracks of them in
the order in which it encounters them in each run.  I'm not sure what else
it could do.  You probably need to arrange things so that all files that
are hardlinked together are always in the same run.  Alternatively, after
a file is transferred perhaps you create the hardlinks into the next
destination directory with your own script before letting rsync loose on it.

- Dave Dykstra




Re: rsync Faq-O-Matic

2001-03-12 Thread Martin Pool

On 27 Feb 2001, [EMAIL PROTECTED] wrote:
 Hi Martin.
 
 I was trying to post a question in the Troubleshooting category and 
 inadvertently created a Subcategory instead(readlink : No such file or 
 directory).  I apologize for that.

That's no problem; I've just converted it back to a plain question.
Thankyou for contributing to it.

 I would appreciate any input anyone 
 can give as to why I am getting this error.  The sending side is 
 detecting the 'readlink : No such file or directory' error and I 
 believe that is why the deletion of any files at the destination is 
 being disabled.  I am using version 2.4.6  protocol version 24.  The 
 configuration is as follows:
 
   local machine: Solaris 7
   Remote machine: daemon running on Solaris 8.
 
 Has anyone reported rsync functionality problems with Solaris 8?

We do test on a Solaris 8 machine donated to the Samba project, but
there is no formal regression suite at the moment.  Code contributions
or design ideas towards that would be welcome.

 I have tested the same configuration to an AIX box and it is working
 fine.  I receive no errors and the deletion of files works properly.
 If you or anyone has ideas, any help would be greatly appreciated.

 PS...I love your idea of using FAQ-O-Matic.  

Yes, it seems like it might work well.

-- 
Martin Pool, Human Resource
Linuxcare. Inc.   +61 2 6262 8990
[EMAIL PROTECTED], http://linuxcare.com.au/
Linuxcare.  Putting Open Source to work.




Small patch for librsync-0.9.2

2001-03-12 Thread Jos Backus

This is needed to get it to build on FreeBSD. There are still a number of
warnings after this patch which I haven't investigated closely (yet).

--- librsync-0.9.2.dist/rsync.h Sun Mar 11 23:25:06 2001
+++ librsync-0.9.2/rsync.h  Mon Mar 12 23:48:50 2001
@@ -39,6 +39,8 @@
  * See \ref intro for an introduction to use of this library.
  */
 
+#include sys/types.h
+
 extern char const rs_librsync_version[];
 extern char const rs_licence_string[];
 
@@ -362,7 +364,7 @@
 
 rs_result rs_loadsig_file(FILE *sig_file, rs_signature_t **sumset);
 
-rs_result rs_file_copy_cb(void *arg, rs_long_t, size_t *len, void **buf);
+rs_result rs_file_copy_cb(void *arg, off_t pos, size_t *len, void **buf);
 
 rs_result rs_delta_file(rs_signature_t *, FILE *new_file, FILE *delta_file, 
rs_stats_t *);
 
Thanks,
-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;