From clifford at clifford.at  Tue May  1 00:56:14 2007
From: clifford at clifford.at (Clifford Wolf)
Date: Tue May  1 00:53:59 2007
Subject: [Csync2] Re: csync2 questions...
In-Reply-To: <4636602B.8060809@1100tech.com>
References: <4636602B.8060809@1100tech.com>
Message-ID: <20070430225614.GA10198@clifford.at>

Hi,

On Mon, Apr 30, 2007 at 02:31:23PM -0700, Drew Bertola wrote:
> [...]
> 
> First, do you recommend csync2 for file systems with a very large number 
> of files ( > 200K files)?  What would the ballpark limit be for number 
> of files to be kept in sync?

It really depends (on i/o throutput, how much of your fs data is in your
block buffers, what are your time constraints, etc..)

csync2 performance scales with something like O(N*log(N)). The larges setup
(in number of files) I do know of is running csync2 with >3 million files.
But sure, in such a setup a check can take already a few minutes..

> What is the algorithm for comparison?  Is it a comparison of the 
> databases stored on each hosts, or do you look at each file as well?

I compare the local database with the local file metadata (size, timestamp,
permissions, etc.). The file content itself is only accessed when actually
doing the sync, not for the check.

> Finally, the customer enjoys tormenting us with a heterogeneous 
> environment.  Have you heard of any success w/ FreeBSD or Solaris? 

no. I've only tried csync2 on linux and on win32 (using cygwin). If there
are any changes needed for FreeBSD or Solaris they should be trivial.

yours,
 - clifford

-- 
It is easier to change the specification to fit the program than vice versa.
From Mr.Ngonoh at linbit.com  Thu May  3 04:25:45 2007
From: Mr.Ngonoh at linbit.com (Mr.Ngonoh@linbit.com)
Date: Thu May  3 04:26:18 2007
Subject: [Csync2] A Cry For Help,
Message-ID: <20070503022545.35C982E113C7@mail.linbit.com>

 From:Ngonoh Mutari 
 
Dear Sir,
 
I very well know you will be surprise to read from me, a total stranger but please consider this letter as a genuine request from a family in dire need of your humble assistance. Firstly, I must introduce myself. I am Ngonoh Mutari. A citizen of Zimbabwe , but I am contacting you from Bangkok Thailand where I am now seeking political asylum. I got your contact through the Thailand Information Exchange Online.
I am the only son of Mr. Christopher Gambo Mutari, a wealthy black farmer and senior politician with the opposition political party in my country’s Movement for Democratic Change (MDC). Our wicked President Robert Mugabe murdered my father, before I ran way from my country because I have become his next target to eliminate. My father was a fighter for Justice and a moving force in The MDC, a party wanting to end the several years of brutal Dictatorship government of President Robert Mugabe. You will read more stories about President Mugabe's brutal acts by visiting this web site:
http://www.rte.ie/news/2000/0418/zimbabwe.html 
My father was accused of assisting the White farmers in fighting the government. Few weeks after his arrest, he was reported dead. The government claimed he died of heart attack and his body was never seen for proper autopsy, they quickly buried him in the government cemetery. My father's associate Mr. Martin Olds a White farmer from Britain assisted me in fighting my father's death through the Court and media. 
The Government saw us as a big threat to them and decided to eliminate us. Mr. Olds was attacked and murdered in his House, but fortunately, before they came looking for me, I received the news and I left the country through the border to South Africa to save my life, before my arrival here in Bangkok Thailand.
Here is my reason for contacting you. Before the death of my father, he deposited the sum of Nine Million Six Hundred Thousand US Dollars (US$9,600,000.00) with a security and finance company when he went to Thailand to purchase his farm machinery equipment, as if he foresee the looming danger in Zimbabwe . The money was deposited as a gem/precious stone in a metal trunk box to avoid seizure and much demurrage from the security company. This money was earmarked for the purchase of new machinery and chemicals for the farms and the establishment of new farms in Lesotho and Swaziland .
The government seized my fathers farms and bank account before his arrest and Murder. He told me everything concerning the funds while he was still in detention. This is why I need your assistance in securing the funds there in your Country, so that I can arrange on how to come over to your country for the investment of the fund, I am willing to offer you 15% of the US$9,600,000.00 for your assistance and you are to provide an account where the funds will be transferred into because I am faced with the dilemma of investing this amount of money in Thailand as the financial law and regulations of the government of Thailand does not give we asylum seekers financial rights to such huge sum of money. In view of this, I cannot invest the fund in Bangkok Thailand . Moreover, the Thailand monetary policy/law does not allow such investment by an asylum seeker or refugee. Kindly let me know if you can assist me, so that I can give you more details on how we shall proceed. You can contact me by reply mail on the above mail:ngonoh@she.com While I await your urgent reply, I thank you again for finding time to go through my mail. As you opt to help, may Almighty God bless you abundantly. 
Yours truly,
Ngonoh Mutari.
From Mrs.Farah at linbit.com  Fri May  4 13:04:12 2007
From: Mrs.Farah at linbit.com (Mrs.Farah@linbit.com)
Date: Fri May  4 13:04:49 2007
Subject: [Csync2] I will appreciate your reply
Message-ID: <20070504110412.168432E2D985@mail.linbit.com>

mail:hashemi@she.com
Dearest Beloved,

Thank you for the attention beeing given to go through my mail.I am
Mrs.Farah al-Hashemi, The wife of iraq military finance corps Chief, who was
incharge of the payment of the military salary during his life service time.
I am 58 years old, i am now receiving treatment in the hospital. It's
quite obvious that I won't live Longer according to my doctor as i am
sufering from my kidney transplant illness,this is because my illness has
gotten to a very bad stage.

My late husband died from the British and American attacks over my
country,and during the period of our marriage we had two male children Musa
and Idris.After the death of my husband , I inherited some money which my
late husband deposited with a Security Finance Company in Thailand for
safety.The doctor has advised me that I may not live long, so I now decided
to contact you to assist my two sons to claim this money From where it was
deposited and guide them for investment as you are a potential business man.

My family will be interested in doing business in your country, thefore i
would like to seek your assistance and help.I am interested particularly in
properties , but your advise on other areas of private sector would be
highly appreciated, i am in believe that you would be of great help in
guiding my two sons to a sucessful exploration of the investment potentials
of your country , which guarantees good capital returns and human security
.As a result of this, i can take you in confidence bassically due of the
source of the fund , hereby believing
that your assistance will be profitable to us.

The amount in question is USD$12 Million .I will appreciate your willingness
to carry this transactions the gratification remark which will be determined
as soon as i hear from you.As i have maped out 20%, for your assistance and
5% would be used for the re-embursement of any expenses that is encurred
during on the process of this transaction .

Lastly, I honestly pray that this money when transferred to your country
will be used for the said purpose of investing in the industry, because I
have come to find out that wealth acquisition without Allah is vanity upon
vanity. I await your urgent reply to enable me up-date you with more
information and how to proced. Do feel free to ask me any question if you
wish to as my husbands death has blocked every trace of this money from
us,the documentations relating to the deposit of this fund are all intact
with my first son for your
verification.I await to hearing from you soonest.

Yours Sincerely.
Mrs Farah al-Hashemi
From pcunha at gmail.com  Fri May  4 13:31:21 2007
From: pcunha at gmail.com (Paulo Cunha)
Date: Fri May  4 13:31:54 2007
Subject: [Csync2] I will appreciate your reply
In-Reply-To: <20070504110412.168432E2D985@mail.linbit.com>
References: <20070504110412.168432E2D985@mail.linbit.com>
Message-ID: <6a5eb1760705040431t47bb74bauc968a003138fbf36@mail.gmail.com>

Someone please ban this spammer, thanks.

On 5/4/07, Mrs.Farah@linbit.com <Mrs.Farah@linbit.com> wrote:
>
> mail:hashemi@she.com
> Dearest Beloved,
>
> Thank you for the attention beeing given to go through my mail.I am
> Mrs.Farah al-Hashemi, The wife of iraq military finance corps Chief, who
> was
> incharge of the payment of the military salary during his life service
> time.
> I am 58 years old, i am now receiving treatment in the hospital. It's
> quite obvious that I won't live Longer according to my doctor as i am
> sufering from my kidney transplant illness,this is because my illness has
> gotten to a very bad stage.
>
> My late husband died from the British and American attacks over my
> country,and during the period of our marriage we had two male children
> Musa
> and Idris.After the death of my husband , I inherited some money which my
> late husband deposited with a Security Finance Company in Thailand for
> safety.The doctor has advised me that I may not live long, so I now
> decided
> to contact you to assist my two sons to claim this money From where it was
> deposited and guide them for investment as you are a potential business
> man.
>
> My family will be interested in doing business in your country, thefore i
> would like to seek your assistance and help.I am interested particularly
> in
> properties , but your advise on other areas of private sector would be
> highly appreciated, i am in believe that you would be of great help in
> guiding my two sons to a sucessful exploration of the investment
> potentials
> of your country , which guarantees good capital returns and human security
> .As a result of this, i can take you in confidence bassically due of the
> source of the fund , hereby believing
> that your assistance will be profitable to us.
>
> The amount in question is USD$12 Million .I will appreciate your
> willingness
> to carry this transactions the gratification remark which will be
> determined
> as soon as i hear from you.As i have maped out 20%, for your assistance
> and
> 5% would be used for the re-embursement of any expenses that is encurred
> during on the process of this transaction .
>
> Lastly, I honestly pray that this money when transferred to your country
> will be used for the said purpose of investing in the industry, because I
> have come to find out that wealth acquisition without Allah is vanity upon
> vanity. I await your urgent reply to enable me up-date you with more
> information and how to proced. Do feel free to ask me any question if you
> wish to as my husbands death has blocked every trace of this money from
> us,the documentations relating to the deposit of this fund are all intact
> with my first son for your
> verification.I await to hearing from you soonest.
>
> Yours Sincerely.
> Mrs Farah al-Hashemi
>
> _______________________________________________
> Csync2 mailing list
> Csync2@lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linbit.com/pipermail/csync2/attachments/20070504/eeb97c54/attachment.html
From light at theendofthetunnel.de  Mon May 14 15:05:03 2007
From: light at theendofthetunnel.de (Hannes Dorbath)
Date: Mon May 14 15:05:27 2007
Subject: [Csync2] Recovering to a sync state.. 
Message-ID: <46485E7F.1080100@theendofthetunnel.de>

Hello,

I used csync2 about half a year to sync a 2 node cluster and never had a 
problem. After I extended this setup to include a third node I somehow 
managed to get the new node completely out of sync with the rest.

When I run csync2 -xvd on both sides they say all is in sync. However 
the third node misses around 200,000 files from the other two. After 
digging in the manual I though csync2 -TIXU might be what I'm after, but 
again, it says nothing on both sides.

Well, maybe my general question is how to validate the information in 
it's sqlite db against what there really is on the file system. How can 
I have csync2 read and check every file physically on each node? And 
what is the best/correct way to bootstrap/add a new node.

Thanks for any hint!


-- 
Regards,
Hannes Dorbath
From aaron at daltons.ca  Mon May 14 22:26:34 2007
From: aaron at daltons.ca (Aaron Dalton)
Date: Mon May 14 22:27:04 2007
Subject: [Csync2] Compilation trouble on FreeBSD
Message-ID: <4648C5FA.9060904@daltons.ca>

I'm trying to create a port for csync2 for FreeBSD.  After finding what
I think to be all the dependencies, I have been able to successfully
configure and begin the make process.  A short time in, however, the
build dies.  I am attaching the full build log, but here's the snippet
in question:

if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"'
-D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include
-I/usr/local/include -I/usr/local/include -MT rsync.o -MD -MP -MF
".deps/rsync.Tpo"  -c -o rsync.o `test -f 'rsync.c' || echo
'./'`rsync.c;  then mv -f ".deps/rsync.Tpo" ".deps/rsync.Po";  else rm
-f ".deps/rsync.Tpo"; exit 1;  fi
rsync.c: In function `csync_recv_file':
rsync.c:85: error: `ENODATA' undeclared (first use in this function)
rsync.c:85: error: (Each undeclared identifier is reported only once
rsync.c:85: error: for each function it appears in.)
*** Error code 1

I'm not sure what the problem is here.  Any ideas on how to proceed?
Thanks for your time!

-- 
Aaron Dalton       |   Super Duper Games
aaron@daltons.ca   |   http://superdupergames.org
-------------- next part --------------
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2007.05.14 14:22:46 =~=~=~=~=~=~=~=~=~=~=~=
./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for rs_sig_file in -lrsync... yes
checking for sqlite_exec in -lsqlite... yes
checking for libgnutls-config... /usr/local/bin/libgnutls-config
checking for libgnutls - version >= 1.0.0... yes
checking for SSL_new in -lgnutls-openssl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[1maaron@moondance/~/compile/csync2-1.33[m: make

bison -y -d -d `test -f 'cfgfile_parser.y' || echo './'`cfgfile_parser.y
if test -f y.tab.h; then  to=`echo "cfgfile_parser_H" | sed  -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'  -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`;  sed "/^#/ s/Y_TAB_H/$to/g" y.tab.h >cfgfile_parser.ht;  rm -f y.tab.h;  if cmp -s cfgfile_parser.ht cfgfile_parser.h; then  rm -f cfgfile_parser.ht ; else  mv cfgfile_parser.ht cfgfile_parser.h;  fi;  fi
if test -f y.output; then  mv y.output cfgfile_parser.output;  fi
sed '/^#/ s|y\.tab\.c|cfgfile_parser.c|' y.tab.c >cfgfile_parser.ct && mv cfgfile_parser.ct cfgfile_parser.c
rm -f y.tab.c
make  all-am
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT action.o -MD -MP -MF ".deps/action.Tpo"  -c -o action.o `test -f 'action.c' || echo './'`action.c;  then mv -f ".deps/action.Tpo" ".deps/action.Po";  else rm -f ".deps/action.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT cfgfile_parser.o -MD -MP -MF ".deps/cfgfile_parser.Tpo"  -c -o cfgfile_parser.o `test -f 'cfgfile_parser.c' || echo './'`cfgfile_parser.c;  then mv -f ".deps/cfgfile_parser.Tpo" ".deps/cfgfile_parser.Po";  else rm -f ".deps/cfgfile_parser.Tpo"; exit 1;  fi
flex   `test -f cfgfile_scanner.l || echo './'`cfgfile_scanner.l
sed '/^#/ s|lex.yy\.c|cfgfile_scanner.c|' lex.yy.c >cfgfile_scanner.c
rm -f lex.yy.c
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT cfgfile_scanner.o -MD -MP -MF ".deps/cfgfile_scanner.Tpo"  -c -o cfgfile_scanner.o `test -f 'cfgfile_scanner.c' || echo './'`cfgfile_scanner.c;  then mv -f ".deps/cfgfile_scanner.Tpo" ".deps/cfgfile_scanner.Po";  else rm -f ".deps/cfgfile_scanner.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT check.o -MD -MP -MF ".deps/check.Tpo"  -c -o check.o `test -f 'check.c' || echo './'`check.c;  then mv -f ".deps/check.Tpo" ".deps/check.Po";  else rm -f ".deps/check.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT checktxt.o -MD -MP -MF ".deps/checktxt.Tpo"  -c -o checktxt.o `test -f 'checktxt.c' || echo './'`checktxt.c;  then mv -f ".deps/checktxt.Tpo" ".deps/checktxt.Po";  else rm -f ".deps/checktxt.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT csync2.o -MD -MP -MF ".deps/csync2.Tpo"  -c -o csync2.o `test -f 'csync2.c' || echo './'`csync2.c;  then mv -f ".deps/csync2.Tpo" ".deps/csync2.Po";  else rm -f ".deps/csync2.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT daemon.o -MD -MP -MF ".deps/daemon.Tpo"  -c -o daemon.o `test -f 'daemon.c' || echo './'`daemon.c;  then mv -f ".deps/daemon.Tpo" ".deps/daemon.Po";  else rm -f ".deps/daemon.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT db.o -MD -MP -MF ".deps/db.Tpo"  -c -o db.o `test -f 'db.c' || echo './'`db.c;  then mv -f ".deps/db.Tpo" ".deps/db.Po";  else rm -f ".deps/db.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT error.o -MD -MP -MF ".deps/error.Tpo"  -c -o error.o `test -f 'error.c' || echo './'`error.c;  then mv -f ".deps/error.Tpo" ".deps/error.Po";  else rm -f ".deps/error.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT getrealfn.o -MD -MP -MF ".deps/getrealfn.Tpo"  -c -o getrealfn.o `test -f 'getrealfn.c' || echo './'`getrealfn.c;  then mv -f ".deps/getrealfn.Tpo" ".deps/getrealfn.Po";  else rm -f ".deps/getrealfn.Tpo"; exit 1;  fi
getrealfn.c: In function `my_get_current_dir_name':
getrealfn.c:36: warning: return makes pointer from integer without a cast
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT groups.o -MD -MP -MF ".deps/groups.Tpo"  -c -o groups.o `test -f 'groups.c' || echo './'`groups.c;  then mv -f ".deps/groups.Tpo" ".deps/groups.Po";  else rm -f ".deps/groups.Tpo"; exit 1;  fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -MT rsync.o -MD -MP -MF ".deps/rsync.Tpo"  -c -o rsync.o `test -f 'rsync.c' || echo './'`rsync.c;  then mv -f ".deps/rsync.Tpo" ".deps/rsync.Po";  else rm -f ".deps/rsync.Tpo"; exit 1;  fi
rsync.c: In function `csync_recv_file':
rsync.c:85: error: `ENODATA' undeclared (first use in this function)
rsync.c:85: error: (Each undeclared identifier is reported only once
rsync.c:85: error: for each function it appears in.)
*** Error code 1

Stop in /home/aaron/compile/csync2-1.33.
*** Error code 1

Stop in /home/aaron/compile/csync2-1.33.
[1maaron@moondance/~/compile/csync2-1.33[m: 
From ruben at rubenkerkhof.com  Tue May 15 00:26:52 2007
From: ruben at rubenkerkhof.com (Ruben Kerkhof)
Date: Tue May 15 00:28:11 2007
Subject: [Csync2] Compilation trouble on FreeBSD
In-Reply-To: <4648C5FA.9060904@daltons.ca>
References: <4648C5FA.9060904@daltons.ca>
Message-ID: <D3889AD4-2455-4DB6-89D0-9E5F7E090FD4@rubenkerkhof.com>


On 14-mei-2007, at 22:26, Aaron Dalton wrote:

> I'm trying to create a port for csync2 for FreeBSD.  After finding  
> what
> I think to be all the dependencies, I have been able to successfully
> configure and begin the make process.  A short time in, however, the
> build dies.  I am attaching the full build log, but here's the snippet
> in question:
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I.  -D'DBDIR="/var/lib/csync2"'
> -D'ETCDIR="/etc"'  -I/usr/local/include   -g -O2 -I/usr/local/include
> -I/usr/local/include -I/usr/local/include -MT rsync.o -MD -MP -MF
> ".deps/rsync.Tpo"  -c -o rsync.o `test -f 'rsync.c' || echo
> './'`rsync.c;  then mv -f ".deps/rsync.Tpo" ".deps/rsync.Po";  else rm
> -f ".deps/rsync.Tpo"; exit 1;  fi
> rsync.c: In function `csync_recv_file':
> rsync.c:85: error: `ENODATA' undeclared (first use in this function)
> rsync.c:85: error: (Each undeclared identifier is reported only once
> rsync.c:85: error: for each function it appears in.)
> *** Error code 1
>
> I'm not sure what the problem is here.  Any ideas on how to proceed?
> Thanks for your time!
>

Hi Aaron,

I think ENODATA is not defined on FreeBSD,
you might need to add
#ifndef ENODATA
   #define ENODATA ENOMSG
#endif

Ruben
From clifford at clifford.at  Tue May 15 08:20:13 2007
From: clifford at clifford.at (Clifford Wolf)
Date: Tue May 15 08:17:48 2007
Subject: [Csync2] Compilation trouble on FreeBSD
In-Reply-To: <4648C5FA.9060904@daltons.ca>
References: <4648C5FA.9060904@daltons.ca>
Message-ID: <20070515062013.GA764@clifford.at>

Hi,

On Mon, May 14, 2007 at 02:26:34PM -0600, Aaron Dalton wrote:
> rsync.c: In function `csync_recv_file':
> rsync.c:85: error: `ENODATA' undeclared (first use in this function)
> rsync.c:85: error: (Each undeclared identifier is reported only once
> rsync.c:85: error: for each function it appears in.)
> *** Error code 1
> 
> I'm not sure what the problem is here.  Any ideas on how to proceed?
> Thanks for your time!

simply change the ENODATA in rsync.c to, lets say, EIO.

this is just an errno that I'm setting there when something went wrong on
the other side of the communication link. It is just important that we
return an error, which specific error isn't that important.

please report back if this solves the troubles with csync2 of FreeBSD or if
also other errors accour.

yours,
 - clifford

-- 
When your hammer is C++, everything begins to look like a thumb.
From aaron at daltons.ca  Wed May 16 01:41:01 2007
From: aaron at daltons.ca (Aaron Dalton)
Date: Wed May 16 01:42:04 2007
Subject: [Csync2] Compilation trouble on FreeBSD
In-Reply-To: <20070515062013.GA764@clifford.at>
References: <4648C5FA.9060904@daltons.ca> <20070515062013.GA764@clifford.at>
Message-ID: <464A450D.9050008@daltons.ca>

Clifford Wolf wrote:
> Hi,
> 
> On Mon, May 14, 2007 at 02:26:34PM -0600, Aaron Dalton wrote:
>> rsync.c: In function `csync_recv_file':
>> rsync.c:85: error: `ENODATA' undeclared (first use in this function)
>> rsync.c:85: error: (Each undeclared identifier is reported only once
>> rsync.c:85: error: for each function it appears in.)
>> *** Error code 1
>>
>> I'm not sure what the problem is here.  Any ideas on how to proceed?
>> Thanks for your time!
> 
> simply change the ENODATA in rsync.c to, lets say, EIO.
> 
> this is just an errno that I'm setting there when something went wrong on
> the other side of the communication link. It is just important that we
> return an error, which specific error isn't that important.
> 
> please report back if this solves the troubles with csync2 of FreeBSD or if
> also other errors accour.
> 
> yours,
>  - clifford
> 

Thank you Clifford and Ruben.  Changing it to EIO seemed to work.  Now
I'm getting the following error:

gcc   -g -O2 -I/usr/local/include -I/usr/local/include
-I/usr/local/include   -L/usr/local/lib -o csync2  action.o
cfgfile_parser.o  cfgfile_scanner.o check.o checktxt.o  csync2.o
daemon.o db.o error.o  getrealfn.o groups.o rsync.o  update.o
urlencode.o conn.o  prefixsubst.o  -lgnutls-openssl -lsqlite -lrsync
-L/usr/local/lib -lgnutls -L/usr/local/lib -lgcrypt -L/usr/local/lib
-lgpg-error -ltasn1
getrealfn.o(.text+0x5): In function `my_get_current_dir_name':
/home/aaron/compile/csync2-1.33/getrealfn.c:36: undefined reference to
`get_current_dir_name'
*** Error code 1

Stop in /home/aaron/compile/csync2-1.33.
*** Error code 1

Stop in /home/aaron/compile/csync2-1.33.

Thanks!
-- 
Aaron Dalton       |   Super Duper Games
aaron@daltons.ca   |   http://superdupergames.org
From clifford at clifford.at  Thu May 17 00:21:44 2007
From: clifford at clifford.at (Clifford Wolf)
Date: Thu May 17 00:19:46 2007
Subject: [Csync2] Compilation trouble on FreeBSD
In-Reply-To: <464B7E56.108@daltons.ca>
References: <4648C5FA.9060904@daltons.ca> <20070515062013.GA764@clifford.at>
	<464A450D.9050008@daltons.ca>
	<20070516091748.GB25980@clifford.at> <464B7E56.108@daltons.ca>
Message-ID: <20070516222144.GB9922@clifford.at>

Hi,

On Wed, May 16, 2007 at 03:57:42PM -0600, Aaron Dalton wrote:
> SQLite question: Do you support sqlite3?  I just noticed that the
> ./configure script only checks for libsqlite.so and the lib for SQLite 3
> is libsqlite3.so.  Should the FreeBSD port require SQLite2?

Csync2 does not support sqlite3. I'm using sqlite3 in some other projects,
but csync2 has been using sqlite already before there was an sqlite3 and I
never ported it.

I was once looking into porting csync2 but desided not to do that because
that would break backward compatibility with existing csync2 installations.

yours,
 - clifford

-- 
bash -c "gcc -o mysdldemo -Wall -O2 -lSDL -lm -pthread -x c <( echo -e '
#include <SDL/SDL.h>\n#include <complex.h>\nint main(){SDL_Surface*s;SDL_Event
e;int x,y,n;SDL_Init(SDL_INIT_VIDEO);s=SDL_SetVideoMode(640,480,32,0);for(x=0;
x<640;x++)for(y=0;y<480;y++){float _Complex z=0, c=((x-400)/200.0) + ((y-240)/
200.0)*1.0fi;for(n=1;n<64;n++){z=z*z+c;if(cabsf(z)>2){((Uint32*)s->pixels)[x+y
*640]=n<<3;n=99;}}}SDL_UpdateRect(s,0,0,s->w,s->h);do SDL_WaitEvent(&e); while
(e.type!=SDL_QUIT&&e.type!=SDL_KEYDOWN);SDL_Quit();return 0;}' ); ./mysdldemo"
From aaron at daltons.ca  Thu May 17 00:34:31 2007
From: aaron at daltons.ca (Aaron Dalton)
Date: Thu May 17 00:35:34 2007
Subject: [Csync2] Compilation trouble on FreeBSD
In-Reply-To: <20070516222144.GB9922@clifford.at>
References: <4648C5FA.9060904@daltons.ca> <20070515062013.GA764@clifford.at>
	<464A450D.9050008@daltons.ca> <20070516091748.GB25980@clifford.at>
	<464B7E56.108@daltons.ca> <20070516222144.GB9922@clifford.at>
Message-ID: <20070516163222.T72221@moondance.itsy-bitsy.net>

On Thu, 17 May 2007, Clifford Wolf wrote:

> Hi,
>
> On Wed, May 16, 2007 at 03:57:42PM -0600, Aaron Dalton wrote:
>> SQLite question: Do you support sqlite3?  I just noticed that the
>> ./configure script only checks for libsqlite.so and the lib for SQLite 3
>> is libsqlite3.so.  Should the FreeBSD port require SQLite2?
>
> Csync2 does not support sqlite3. I'm using sqlite3 in some other projects,
> but csync2 has been using sqlite already before there was an sqlite3 and I
> never ported it.
>
> I was once looking into porting csync2 but desided not to do that because
> that would break backward compatibility with existing csync2 installations.
>
> yours,
> - clifford
>
>

OK, then.  The FreeBSD port is complete.  I included the two small 
patches you sent me.  If you do indeed incorporate them into the main 
source, let me know so I can remove them.  As I said before, the FreeBSD 
ports tree is frozen for a while longer, but I'll commit the port as soon 
as it's thawed.

Cheers!
-- 
Aaron Dalton (aaron@FreeBSD.org)
Super Duper Games
http://superdupergames.org
From clifford at clifford.at  Sat May 26 09:31:08 2007
From: clifford at clifford.at (Clifford Wolf)
Date: Sat May 26 09:29:03 2007
Subject: [Csync2] Re: PATCH write syscall is not interruptible aware
In-Reply-To: <4652E1B3.2060103@astaro.com>
References: <4652E1B3.2060103@astaro.com>
Message-ID: <20070526073108.GB17827@clifford.at>

Hi,

On Tue, May 22, 2007 at 02:27:31PM +0200, Ulrich Weber wrote:
> please find attached patch to make write system call aware of interrupts.
> 
> Needed to transfer large files over non-ssl connections.
> Otherwise transfer is aborted by signal ALARM (after 10 seconds).

thanks for the patch. It has been applied in subversion (rev 387) and will
be part of the next release.

yours,
 - clifford

-- 
M$ is not the answer. M$ is the question. No is the answer!
From danb at zu.com  Thu May 31 07:54:37 2007
From: danb at zu.com (Dan Brown)
Date: Thu May 31 07:42:40 2007
Subject: [Csync2] Invalidating data on one host.
Message-ID: <1557b01c7a348$2c7757a0$3200a8c0@DAN>



I run a pair of servers in master/master mode which replicate between each
other every other minute.  Today I wasn't paying attention and manage to
change the permissions via chmod/chown across a huge swath of files on one
of the hosts. I caught this permissions change before it replicated to the
other host and would like to use the csync2 replication to change them all
back. 

I tried touching the modification times on the files (to be far in the past)
on the corrupted host and forcing them to be the winner on the uncorrupt
host in any conflict but it appears to be ignoring that sort of action.

Is there any easy way of going about this?  

___________________________________________________
Dan Brown
danb@zu.com

From ask at develooper.com  Thu May 31 08:47:52 2007
From: ask at develooper.com (=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?=)
Date: Thu May 31 08:48:56 2007
Subject: [Csync2] csync2 for public software mirrors
Message-ID: <8AB62F66-9A96-4D3D-AE11-4B896A8C5665@develooper.com>

Hi everyone,

It'd be Pretty Neat to have csync2 work for public software mirrors.

For example CPAN has a little less than 300k files - plenty to create  
a significant I/O load with rsync.

If csync2 could work in an untrusted / anonymous / one-way mode (only  
the anonymous bit is missing...?) it could greatly help the  
distribution of mirrors with lots of small files.


   - ask

-- 
http://develooper.com/ - http://askask.com/


From lars.ellenberg at linbit.com  Thu May 31 15:25:46 2007
From: lars.ellenberg at linbit.com (Lars Ellenberg)
Date: Thu May 31 15:25:47 2007
Subject: [Csync2] Invalidating data on one host.
In-Reply-To: <1557b01c7a348$2c7757a0$3200a8c0@DAN>
References: <1557b01c7a348$2c7757a0$3200a8c0@DAN>
Message-ID: <20070531132546.GC13419@aug>

On Wed, May 30, 2007 at 11:54:37PM -0600, Dan Brown wrote:
> 
> 
> I run a pair of servers in master/master mode which replicate between each
> other every other minute.  Today I wasn't paying attention and manage to
> change the permissions via chmod/chown across a huge swath of files on one
> of the hosts. I caught this permissions change before it replicated to the
> other host and would like to use the csync2 replication to change them all
> back. 
> 
> I tried touching the modification times on the files (to be far in the past)
> on the corrupted host and forcing them to be the winner on the uncorrupt
> host in any conflict but it appears to be ignoring that sort of action.
> 
> Is there any easy way of going about this?  

what you could do is:

good_node# csync2 -TIUX  ### please check whether you want to use the X...
good_node# csync2 -fr /  ### mark them all as forced
good_node# csync2 -uvd   ### update verbosely in dryrun

# when the dry run made sense, leave of the 'd'


whether that is what you mean, I don't know...

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
