rsync.git
21 years agoimproved max connections code. Now use fcntl instead of flock.
Andrew Tridgell [Wed, 13 May 1998 09:38:54 +0000 (09:38 +0000)]
improved max connections code. Now use fcntl instead of flock.

also started on authentication code (I'm doing a challenge response
system initially)

21 years agosave another couple of round trip latencies. This set of changes is
Andrew Tridgell [Wed, 13 May 1998 09:08:05 +0000 (09:08 +0000)]
save another couple of round trip latencies. This set of changes is
backwards compatible.

21 years agoneed sys/file.h for flock()
Andrew Tridgell [Wed, 13 May 1998 09:01:11 +0000 (09:01 +0000)]
need sys/file.h for flock()

21 years agosave one round trip (version swapping) for daemon.
Andrew Tridgell [Wed, 13 May 1998 08:58:07 +0000 (08:58 +0000)]
save one round trip (version swapping) for daemon.

This is an imcompatible change in the socket protocol. You get "is
your shell clean" if using an older rsync client

21 years agoadded two new options "max connections" and "lock file"
Andrew Tridgell [Wed, 13 May 1998 08:52:12 +0000 (08:52 +0000)]
added two new options "max connections" and "lock file"

21 years agoadded "syslog facility" option. It is an integer and defaults to the
Andrew Tridgell [Wed, 13 May 1998 08:12:51 +0000 (08:12 +0000)]
added "syslog facility" option. It is an integer and defaults to the
value of LOG_DAEMON.

21 years agoadded hosts allow and hosts deny support. I ended up writing my own as
Andrew Tridgell [Wed, 13 May 1998 08:03:47 +0000 (08:03 +0000)]
added hosts allow and hosts deny support. I ended up writing my own as
the tcpd code is not quite what I wanted.

21 years agocheck argc and show usage if no args
Andrew Tridgell [Wed, 13 May 1998 07:04:40 +0000 (07:04 +0000)]
check argc and show usage if no args

21 years agoload the config file on each connect rather than at startup
Andrew Tridgell [Wed, 13 May 1998 00:08:03 +0000 (00:08 +0000)]
load the config file on each connect rather than at startup

21 years agofixed a bug in the new . filename code
Andrew Tridgell [Mon, 11 May 1998 12:29:19 +0000 (12:29 +0000)]
fixed a bug in the new . filename code

21 years agochanged the name of the temporary filename to include a leading . so
Andrew Tridgell [Sun, 10 May 1998 13:45:03 +0000 (13:45 +0000)]
changed the name of the temporary filename to include a leading . so
that it appears hidden while being transferred. This should be useful
when using rsync for mirroring so users accessing via ftp don't get
confused by the temporary files.

21 years agothe statistics reporting was the wrong way around for client receipt
Andrew Tridgell [Sun, 10 May 1998 13:01:59 +0000 (13:01 +0000)]
the statistics reporting was the wrong way around for client receipt
mode! It reported the read/written backwards.

21 years agochanged a couple of places to use strlcpy()
Andrew Tridgell [Sun, 10 May 1998 12:37:26 +0000 (12:37 +0000)]
changed a couple of places to use strlcpy()

21 years agoonly call openlog once
Andrew Tridgell [Sun, 10 May 1998 08:31:50 +0000 (08:31 +0000)]
only call openlog once

fix a segv in loadparm.c

21 years agouse syslog instead of /var/adm/rsyncd.log
Andrew Tridgell [Sun, 10 May 1998 08:24:38 +0000 (08:24 +0000)]
use syslog instead of /var/adm/rsyncd.log

21 years agochange to allow names or numbers to be used for uid and gid.
Andrew Tridgell [Sun, 10 May 1998 08:05:56 +0000 (08:05 +0000)]
change to allow names or numbers to be used for uid and gid.

21 years agofixed typo in socket test
Andrew Tridgell [Sun, 10 May 1998 07:45:14 +0000 (07:45 +0000)]
fixed typo in socket test

21 years agolook for -lsocket by checking for connect()
Andrew Tridgell [Sun, 10 May 1998 07:40:20 +0000 (07:40 +0000)]
look for -lsocket by checking for connect()

21 years agosplit the options parsing code into options.c
Andrew Tridgell [Sun, 10 May 1998 07:25:40 +0000 (07:25 +0000)]
split the options parsing code into options.c

added the --port and --config options

use strlcpy() instead of strncpy()

some cleanups and formatting changes

21 years agobetter negotiation of protocol versions
Andrew Tridgell [Sun, 10 May 1998 03:08:22 +0000 (03:08 +0000)]
better negotiation of protocol versions

21 years agocleanup code a bit
Andrew Tridgell [Sun, 10 May 1998 01:46:06 +0000 (01:46 +0000)]
cleanup code a bit

21 years agoconfiguration parsing and loading code for rsyncd. This is based
Andrew Tridgell [Sat, 9 May 1998 14:00:55 +0000 (14:00 +0000)]
configuration parsing and loading code for rsyncd. This is based
on the Samba config code, so you'll find that the config files will
be eerily familiar if you have ever worked with Samba.

21 years agofirst vesrion of working socket based rsync. It still needs a lot of
Andrew Tridgell [Sat, 9 May 1998 13:58:54 +0000 (13:58 +0000)]
first vesrion of working socket based  It still needs a lot of
work, but at least it works :-)

21 years agojust a stub for now
Andrew Tridgell [Thu, 7 May 1998 14:53:02 +0000 (14:53 +0000)]
just a stub for now

21 years agoremoved some quoted printable stuff from this so it works again
Andrew Tridgell [Thu, 7 May 1998 14:52:38 +0000 (14:52 +0000)]
removed some quoted printable stuff from this so it works again

21 years agosome large systematic changes to make socket conversion easier. The
Andrew Tridgell [Thu, 7 May 1998 14:50:22 +0000 (14:50 +0000)]
some large systematic changes to make socket conversion easier. The
biggest one is the use of rprintf() instead of fprintf()

21 years agosome code cleanup in preparation for a cleaner client/server split
Andrew Tridgell [Thu, 7 May 1998 12:30:47 +0000 (12:30 +0000)]
some code cleanup in preparation for a cleaner client/server split

21 years agoimprove the autoconf warning for broken readdir
Andrew Tridgell [Thu, 7 May 1998 12:29:56 +0000 (12:29 +0000)]
improve the autoconf warning for broken readdir

21 years agoAdd pristine zlib-1.1.2 code, ready for hacking.
Paul Mackerras [Thu, 7 May 1998 06:19:41 +0000 (06:19 +0000)]
Add pristine zlib-1.1.2 code, ready for hacking.

21 years agonow using autoheader as well as autoconf
Andrew Tridgell [Thu, 7 May 1998 03:57:26 +0000 (03:57 +0000)]
now using autoheader as well as autoconf

21 years agohopefully better support for systems where sizeof(int)==8
Andrew Tridgell [Wed, 6 May 1998 14:13:03 +0000 (14:13 +0000)]
hopefully better support for systems where sizeof(int)==8

21 years agodon't need off64_t code on systems where off_t is already 64 bits
Andrew Tridgell [Wed, 6 May 1998 08:01:00 +0000 (08:01 +0000)]
don't need off64_t code on systems where off_t is already 64 bits

21 years agodamn solaris doesn't prototype it's functions correctly. grrr.
Andrew Tridgell [Wed, 6 May 1998 07:35:37 +0000 (07:35 +0000)]
damn solaris doesn't prototype it's functions correctly. grrr.

21 years agohandle mmap() failures
Andrew Tridgell [Wed, 6 May 1998 07:28:14 +0000 (07:28 +0000)]
handle mmap() failures

21 years agobetter test for solaris broken readdir
Andrew Tridgell [Wed, 6 May 1998 07:18:06 +0000 (07:18 +0000)]
better test for solaris broken readdir

21 years agohandle broken readdir() on Solaris 2.6 (it returns the name offset by
Andrew Tridgell [Wed, 6 May 1998 07:00:38 +0000 (07:00 +0000)]
handle broken readdir() on Solaris 2.6 (it returns the name offset by
2 characters!)

21 years agoadd support for lseek64() under solaris 2.6
Andrew Tridgell [Wed, 6 May 1998 06:34:18 +0000 (06:34 +0000)]
add support for lseek64() under solaris 2.6

21 years agoSolaris 2.6 doesn't support "signed char". What a broken system!
Andrew Tridgell [Wed, 6 May 1998 06:21:35 +0000 (06:21 +0000)]
Solaris 2.6 doesn't support "signed char". What a broken system!

21 years agouse floating point for printout of stats - this wrks on machines
Andrew Tridgell [Wed, 6 May 1998 06:07:06 +0000 (06:07 +0000)]
use floating point for printout of stats - this wrks on machines
without long long but with a 64 bit off_t

21 years agoadded support for 64 bit file offsets under Solaris 2.6. Not tested
Andrew Tridgell [Wed, 6 May 1998 05:43:36 +0000 (05:43 +0000)]
added support for 64 bit file offsets under Solaris 2.6. Not tested
yet.

21 years agofix up the int64 handling a little. It should work on a few more
Andrew Tridgell [Wed, 6 May 1998 05:05:00 +0000 (05:05 +0000)]
fix up the int64 handling a little. It should work on a few more
systems now (tested on OSF1)

21 years agoa leading / in a pattern now means "use a absolute path match". This
Andrew Tridgell [Tue, 5 May 1998 11:23:51 +0000 (11:23 +0000)]
a leading / in a pattern now means "use a absolute path match". This
allows you to exclude root directories without excluding
subdirectories of the same name.

21 years agoadded support for sockets and fifos
Andrew Tridgell [Tue, 28 Apr 1998 05:53:18 +0000 (05:53 +0000)]
added support for sockets and fifos

21 years agoa much improved test script from Phil.
Andrew Tridgell [Fri, 17 Apr 1998 15:48:10 +0000 (15:48 +0000)]
a much improved test script from Phil.

21 years agopreparing for release of 1.7.4 v1.7.4
rsync-bugs [Fri, 17 Apr 1998 06:49:05 +0000 (06:49 +0000)]
preparing for release of 1.7.4

21 years agothis is a little test script to test some of rsyncs features
Andrew Tridgell [Fri, 17 Apr 1998 06:08:59 +0000 (06:08 +0000)]
this is a little test script to test some of rsyncs features
(contributed by Phil Hands)

21 years agorevamped the -delete code. The last few bugs with it revealed that it
Andrew Tridgell [Fri, 17 Apr 1998 06:07:23 +0000 (06:07 +0000)]
revamped the -delete code. The last few bugs with it revealed that it
had a fundamental flaw in the way it detected duplicate deletion
scanning (which is very important when -R is used). I now store
inode/device numbers and use those to do the detection. This should be
a much less fragile method.

21 years agoa few code cleanups
Andrew Tridgell [Mon, 13 Apr 1998 07:26:37 +0000 (07:26 +0000)]
a few code cleanups

21 years agopreparing for release of 1.7.3 v1.7.3
rsync-bugs [Mon, 13 Apr 1998 07:00:55 +0000 (07:00 +0000)]
preparing for release of 1.7.3

21 years agofixed a bug in the handling of -R with --delete
Andrew Tridgell [Mon, 13 Apr 1998 06:39:33 +0000 (06:39 +0000)]
fixed a bug in the handling of -R with --delete

I introduced this bug in the last version as a side effect of fixing
the permissions on intermediate directories with -R. drat.

21 years agonot quite so many decimal places in "speedup" :-)
Andrew Tridgell [Mon, 13 Apr 1998 04:44:49 +0000 (04:44 +0000)]
not quite so many decimal places in "speedup" :-)

21 years agofixed a bug in handling the -c option and non-regular files. It hadn't
Andrew Tridgell [Thu, 9 Apr 1998 00:38:40 +0000 (00:38 +0000)]
fixed a bug in handling the -c option and non-regular files. It hadn't
turned up before because Linux had a bug in the handling of NULL
pointers to read()/write() on pipes, so I never noticed the bug in my
testing.

I've also sent a patch to Linus.

21 years agopreparing for release of 1.7.2 v1.7.2
rsync-bugs [Sun, 5 Apr 1998 06:46:11 +0000 (06:46 +0000)]
preparing for release of 1.7.2

21 years agohandle sparse files more efficiently
Andrew Tridgell [Sun, 5 Apr 1998 06:43:38 +0000 (06:43 +0000)]
handle sparse files more efficiently

21 years agoa couple more system calls wrapped in syscall.c
Andrew Tridgell [Sun, 5 Apr 1998 06:26:24 +0000 (06:26 +0000)]
a couple more system calls wrapped in syscall.c

21 years agoin local->local mode don't use exec to start the "remote" rsync,
Andrew Tridgell [Sun, 5 Apr 1998 06:07:37 +0000 (06:07 +0000)]
in local->local mode don't use exec to start the "remote" rsync,
instead just fork()

21 years agofixed a bug in the hlink code - it wasn't taking account of the new
Andrew Tridgell [Sun, 5 Apr 1998 04:34:52 +0000 (04:34 +0000)]
fixed a bug in the hlink code - it wasn't taking account of the new
pointer list code for flist.

21 years agofixed a string termination bug in the uidlist handling code. I've also
Andrew Tridgell [Wed, 1 Apr 1998 05:20:19 +0000 (05:20 +0000)]
fixed a string termination bug in the uidlist handling code. I've also
added a read_sbuf() routine that fixes this kind of bug generically to
avoid similar problems in future.

21 years agodon't need to test for SETPGRP any more as it is no longer used
Andrew Tridgell [Fri, 27 Mar 1998 03:38:06 +0000 (03:38 +0000)]
don't need to test for SETPGRP any more as it is no longer used

21 years agoSolaris uses EEXIST instead of ENOTEMPTY.
Andrew Tridgell [Fri, 27 Mar 1998 03:04:34 +0000 (03:04 +0000)]
Solaris uses EEXIST instead of ENOTEMPTY.

21 years agopreparing for release of 1.7.1 v1.7.1
rsync-bugs [Thu, 26 Mar 1998 06:11:18 +0000 (06:11 +0000)]
preparing for release of 1.7.1

21 years agofixed a bug I introduced in the last big commit
Andrew Tridgell [Thu, 26 Mar 1998 06:09:04 +0000 (06:09 +0000)]
fixed a bug I introduced in the last big commit

21 years agoadded some debugging code
Andrew Tridgell [Thu, 26 Mar 1998 05:48:37 +0000 (05:48 +0000)]
added some debugging code

21 years agopreparing for release of 1.7.0 v1.7.0
rsync-bugs [Thu, 26 Mar 1998 04:53:37 +0000 (04:53 +0000)]
preparing for release of 1.7.0

21 years agoupdated README and man page ready for the new release
Andrew Tridgell [Thu, 26 Mar 1998 04:43:10 +0000 (04:43 +0000)]
updated README and man page ready for the new release

21 years ago- added an internal io_error flag. Whenever an io error occurs (such
Andrew Tridgell [Thu, 26 Mar 1998 04:18:47 +0000 (04:18 +0000)]
- added an internal io_error flag. Whenever an io error occurs (such
as not being able to open a directory) this flag is set and propogated
to the other end. When this flag is set the --delete code is
disabled. This prevents the problem that io or permission errors could
cause files to be incorrectly deleted on the destination.

- added a --timeout option. This allows you to set an IO timeout in
seconds. If no io occurs in that time then rsync exits with a timeout
error.

- changed some FERROR fds to FINFO

21 years agoif rsync fails to update the group of a file but nothing else then
Andrew Tridgell [Thu, 26 Mar 1998 00:32:51 +0000 (00:32 +0000)]
if rsync fails to update the group of a file but nothing else then
don't report a problem. On most OSes non-root users can't change the
group of a file.

21 years agowhen using -x to stop at filesystem boundaries, include the mount
Andrew Tridgell [Thu, 26 Mar 1998 00:11:50 +0000 (00:11 +0000)]
when using -x to stop at filesystem boundaries, include the mount
points but not their contents.

I did this by calling stat() on the directory above the current
directory and checking to see if it has the correct st_dev. Hopefully
this will work for most systems.

Note that the permissions and ownership on the mount point cannot be
copied correctly as they are unavailable while the filesystem is
mounted. Instead rsync will set the permissions and ownership to those
of the root directory of the mounted filesystem (ie. the apparent
permissions/ownership of the directory)

21 years agoadd the dummy file to .cvsignore
Andrew Tridgell [Wed, 25 Mar 1998 11:28:35 +0000 (11:28 +0000)]
add the dummy file to .cvsignore

21 years ago- fixed a bug in the utimbuf test
Andrew Tridgell [Wed, 25 Mar 1998 11:26:20 +0000 (11:26 +0000)]
- fixed a bug in the utimbuf test

- rebuilt prototypes

21 years ago- on systems (such as intel linux) where off_t is 32 bits but "long long"
Andrew Tridgell [Wed, 25 Mar 1998 11:08:32 +0000 (11:08 +0000)]
- on systems (such as intel linux) where off_t is 32 bits but "long long"
  is 64 bits use long long to get the totals right when transferring
  more than 2^32 bytes of data.

- use inline on flist_up if the compiler supports it

21 years agoadded a --force option.
Andrew Tridgell [Wed, 25 Mar 1998 06:05:47 +0000 (06:05 +0000)]
added a --force option.

This options tells rsync to delete directories even if they are not
empty. This applies to both the --delete option and to cases where
rsync tries to copy a normal file but the destination contains a
directory of the same name. Normally rsync will refuse to do a
recursive directory deletion in such cases, by using --force the
recursive deletion will be done.

21 years agochanges to make VPATH work correctly, thanks to patl@cag.lcs.mit.edu
Andrew Tridgell [Wed, 25 Mar 1998 04:14:18 +0000 (04:14 +0000)]
changes to make VPATH work correctly, thanks to patl@cag.lcs.mit.edu

21 years agoadded this so the lib directory gets created when using VPATH
Andrew Tridgell [Wed, 25 Mar 1998 04:13:17 +0000 (04:13 +0000)]
added this so the lib directory gets created when using VPATH

21 years ago- fixed a bug wth the handling of duplicate names with the new fist
Andrew Tridgell [Wed, 25 Mar 1998 03:34:52 +0000 (03:34 +0000)]
- fixed a bug wth the handling of duplicate names with the new fist
  structures

- send intermediate directories when using --relative to ensure the
  permissions are set correctly

21 years agodon't show basedir in printed path (a aesthetic change only)
Andrew Tridgell [Wed, 25 Mar 1998 01:59:23 +0000 (01:59 +0000)]
don't show basedir in printed path (a aesthetic change only)

21 years agofixed the problem where you couldn't specify multiple remote
Andrew Tridgell [Wed, 25 Mar 1998 00:40:47 +0000 (00:40 +0000)]
fixed the problem where you couldn't specify multiple remote
filenames. The fix will need some testing.

21 years agocheck a few HAVE_* macros
Andrew Tridgell [Tue, 24 Mar 1998 06:42:11 +0000 (06:42 +0000)]
check a few HAVE_* macros

21 years agoadded chmod() and chown() to syscall.c
Andrew Tridgell [Tue, 24 Mar 1998 06:39:16 +0000 (06:39 +0000)]
added chmod() and chown() to syscall.c

21 years agotest for "long long" and %lld in configure.
Andrew Tridgell [Mon, 23 Mar 1998 14:46:03 +0000 (14:46 +0000)]
test for "long long" and %lld in configure.

21 years agoadded wrappers around all the system calls that can change what is on
Andrew Tridgell [Mon, 23 Mar 1998 13:25:30 +0000 (13:25 +0000)]
added wrappers around all the system calls that can change what is on
disk. The wrappers check for dry_run.

21 years agofinished 64 bit file offset support. Hopefully rsync can now transfer
Andrew Tridgell [Mon, 23 Mar 1998 12:52:57 +0000 (12:52 +0000)]
finished 64 bit file offset support. Hopefully rsync can now transfer
files up to 2^64 bytes in size. Now I just need to find enough disk
space to test this :-)

The 64 bit offset code only works if off_t is 64 bits (or bigger!) on
both ends of the link. If one end tries to send a file greater than
2^31 in size and the other end doesn't support it then rsync will
abort.

This commit also cleans up some static declarations so they are in a
unitinitialised segment to save load time.

21 years agostarted to add some 64 bit file offset support - not complete yet
Andrew Tridgell [Mon, 23 Mar 1998 08:49:48 +0000 (08:49 +0000)]
started to add some 64 bit file offset support - not complete yet

21 years agolabel this version 1.7.0alpha
Andrew Tridgell [Mon, 23 Mar 1998 07:26:14 +0000 (07:26 +0000)]
label this version 1.7.0alpha

21 years agosave some more memory by only allocating the checksum when needed
Andrew Tridgell [Mon, 23 Mar 1998 07:25:21 +0000 (07:25 +0000)]
save some more memory by only allocating the checksum when needed

21 years agoif the file changes during transfer then don't loop forever trying to
Andrew Tridgell [Mon, 23 Mar 1998 07:11:51 +0000 (07:11 +0000)]
if the file changes during transfer then don't loop forever trying to
update it

21 years agodon't adapt the block size to above half the chunk size
Andrew Tridgell [Mon, 23 Mar 1998 06:26:08 +0000 (06:26 +0000)]
don't adapt the block size to above half the chunk size

21 years agoprototype update
Andrew Tridgell [Mon, 23 Mar 1998 04:47:40 +0000 (04:47 +0000)]
prototype update

21 years ago- keep a list of pids and send them a SIGUSR1 for cleanup rather than
Andrew Tridgell [Mon, 23 Mar 1998 04:44:44 +0000 (04:44 +0000)]
- keep a list of pids and send them a SIGUSR1 for cleanup rather than
using setpgrp()

- adapt the block size for really large files to reduce the checksum
  size and memory overheads

21 years agofor systems with a broken select use u_sleep() to ensure the write
Andrew Tridgell [Mon, 23 Mar 1998 04:14:21 +0000 (04:14 +0000)]
for systems with a broken select use u_sleep() to ensure the write
process doesn't chew too much cpu time.

21 years agoa large change to make rsync much more memory efficient. This is done
Andrew Tridgell [Mon, 23 Mar 1998 03:45:02 +0000 (03:45 +0000)]
a large change to make rsync much more memory efficient. This is done
in 3 ways:

1) the realloc is done on a list of pointers, not a list of structures
2) only the basename of the file is now kept in the file struct an a
   util function f_name() is now used to access the full name when
   required.
3) pointers to directory names are re-used

hopefully I haven't broken anything. This will need lots of testing.

21 years agocompatibility functions now split into their own file
Andrew Tridgell [Tue, 24 Feb 1998 11:54:10 +0000 (11:54 +0000)]
compatibility functions now split into their own file

21 years ago*** empty log message ***
Andrew Tridgell [Tue, 27 Jan 1998 17:51:37 +0000 (17:51 +0000)]
*** empty log message ***

21 years ago*** empty log message *** v1.6.9
Andrew Tridgell [Tue, 13 Jan 1998 19:25:59 +0000 (19:25 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Andrew Tridgell [Tue, 13 Jan 1998 19:19:48 +0000 (19:19 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Andrew Tridgell [Tue, 13 Jan 1998 18:35:10 +0000 (18:35 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Andrew Tridgell [Tue, 13 Jan 1998 17:16:14 +0000 (17:16 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Andrew Tridgell [Tue, 13 Jan 1998 15:57:26 +0000 (15:57 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Andrew Tridgell [Tue, 6 Jan 1998 16:53:52 +0000 (16:53 +0000)]
*** empty log message ***

21 years agocosmetic changes only
Andrew Tridgell [Mon, 5 Jan 1998 23:30:44 +0000 (23:30 +0000)]
cosmetic changes only
- minor correction to --update docs
- don't print "building file list" stuff when building a local file
list for use in the --delete code.
- remove some spaces at the end of lines in Makefile.in