On Mon, Sep 17, 2012 at 09:08:55PM +0530, Samba wrote: > Thanks Lars, > > do let me know if i can be of any help to you in this.
Please, everyone, checkout what is in http://git.linbit.com/gitweb.cgi?p=csync2.git;a=shortlog;h=refs/heads/for-review-may-be-rebased-without-notice git clone git://git.linbit.com/csync2.git for-review-may-be-rebased-without-notice respectively git clone git://git.linbit.com/csync2.git ... git pull git checkout -b for-review origin/for-review-may-be-rebased-without-notice Merely compile tested, at this point these are my commits beyond origin/master: 82e842d try to better deal with vanished leading path components ff17c43 deal with missing leading path components dc3c471 try to create configured backup directory, if missing d01d45a add helper functions setup_tag(), detroy_tag() 0c7cd14 add -l (log to syslog) to xinetd example config 0acf57b Whitespace only: piped a few functions through indent d187023 get rid of compiler warning for (void*)(int) cast 1d685ed add -Wall to CFLAGS 920f202 Fix linking issue 'gnutls_global_init not found', by adding gnutls to LIBS as well Check if the splitting makes sense to you, if I overlooked or lost something while splitting, rebasing and doing some cleanups. Also, if you feel like it, write some decent commit messages ;-) What realy would be great is some "unit" test cases... There is one "hidden feature" already, intended to become the "csync2 tunnel via ssh" mode at some point, once we figure out how to convince the csync2 *client* to actually use a pre-established file descriptor for communication. if you start csync2 in "inetd daemon" mode with stdin connected to a pipe, it will get the peer information from the "SSH_CLIENT" environment variable, not from the getpeername() socket api. So for a unit test on a sigle box, you could do things like exec 7> >(SSH_CLIENT="10.11.12.13 7777 8888" ./csync2 -i) echo >&7 "CONFIG " echo >&7 "HELLO my.fake.hostname.corresponding.to.10.11.12.13 " ... And see what comes back ;-) Thanks, Lars _______________________________________________ Csync2 mailing list Csync2@lists.linbit.com http://lists.linbit.com/mailman/listinfo/csync2