Commit graph

120 commits

Author SHA1 Message Date
Andreas Schneider
db839ef5d3 Try to create remote directory if it doesn't exists or throw an error. 2008-05-15 17:17:48 +02:00
Andreas Schneider
4489fbfa2b Implement the reconciler. 2008-05-15 13:50:34 +02:00
Andreas Schneider
49543390e2 Fix synchronizer instruction on update detection for changed files. 2008-05-15 12:04:09 +02:00
Andreas Schneider
320f07f631 Show stats on error during update detection too. 2008-05-15 12:03:05 +02:00
Andreas Schneider
63e823778b Print error if opendir fails. 2008-05-13 16:06:11 +02:00
Andreas Schneider
4f81a8adc2 Fix typo. Wrong uri was used for remote replica. 2008-05-13 16:05:11 +02:00
Andreas Schneider
1d61cb9a51 Add error if callback ist set after init. 2008-05-13 16:04:29 +02:00
Andreas Schneider
ac8243c445 Fix status check. 2008-05-13 16:04:00 +02:00
Andreas Schneider
2c8f1fb667 Merge branch 'master' of git://git.csync.org/csync 2008-05-13 13:40:42 +02:00
Andreas Schneider
e76495a5cc Add a module auth callback function.
This allows the client to create an authentication callback function and
let the module call it. This makes it independent from gui or commandline.
2008-05-13 13:38:03 +02:00
Andreas Schneider
988591491a Install needed header files. 2008-05-13 13:36:50 +02:00
Andreas Schneider
c5c01998c5 Cleanup comments. 2008-05-09 13:34:46 +02:00
Andreas Schneider
7f3cba1517 Add missing tests for journal functions. 2008-05-09 11:25:21 +02:00
Andreas Schneider
8fc9e93ee0 Respect return value of fscanf. 2008-05-08 16:16:55 +02:00
Andreas Schneider
393c3ce9db Initialize variables. 2008-05-08 16:07:15 +02:00
Andreas Schneider
d0a6e9221b Fix tests and remove developer mode.
This allows to run all tests without the need for a special developer
mode.
2008-05-07 15:33:55 +02:00
Andreas Schneider
b1f8ab38c9 Fix null termination. 2008-05-07 11:29:48 +02:00
Andreas Schneider
014346f2bb Fix typo. 2008-05-06 15:41:52 +02:00
Andreas Schneider
6af37010cd Fix a stack smash. 2008-05-06 14:31:36 +02:00
Andreas Schneider
a1116b0e00 Add a module to find libdl.so. 2008-05-06 10:54:15 +02:00
Andreas Schneider
dce6278a1d Change set right version. 2008-05-05 13:53:07 +02:00
Andreas Schneider
4fb4ff84a8 Add a journal testing mode to the client. 2008-05-05 11:09:16 +02:00
Andreas Schneider
cfe0888771 Initialize the variables and create remote uri. 2008-05-05 10:48:34 +02:00
Andreas Schneider
c318daed7f Add time difference check to the init function. 2008-05-05 10:48:05 +02:00
Andreas Schneider
20da2351cf Add function to calculate the time difference between the replicas. 2008-05-05 10:35:38 +02:00
Andreas Schneider
94fbdc1d04 Remove in source iniparser library and require system lib. 2008-05-01 10:01:34 +02:00
Andreas Schneider
5a2fa7f563 Fix a segfault if we don't find an exlcude list. 2008-04-30 16:36:54 +02:00
Andreas Schneider
25e300c462 Implement detection of updates. 2008-04-30 16:24:50 +02:00
Andreas Schneider
b9c3009445 Add function to get file info by hash or inode. 2008-04-30 16:23:42 +02:00
Andreas Schneider
648c93ba7d Add a function to get a string from an instruction code.
This needed for human readable debugging messages.
2008-04-30 16:22:48 +02:00
Andreas Schneider
12764c6778 Call the shutdown function of the plugin before closing. 2008-04-30 13:10:18 +02:00
Andreas Schneider
f1078daa08 Create indexes. 2008-04-30 12:45:03 +02:00
Andreas Schneider
8ffce13e0e Check return value of result and free it. 2008-04-30 12:44:40 +02:00
Andreas Schneider
d57b2fed12 Always close the db, sqlite3_close() has to free memory. 2008-04-30 12:32:35 +02:00
Andreas Schneider
dc5b9853a7 Add missing return value check. 2008-04-30 10:39:08 +02:00
Andreas Schneider
997ec6db98 Speedup the journal creation and adapt the testcases. 2008-04-29 14:21:16 +02:00
Andreas Schneider
3df40b205e Fix return value of csync_journal_load and add sqlite3 optimization. 2008-04-29 14:19:50 +02:00
Andreas Schneider
669c2f8478 Check for the right value in the database. 2008-04-29 14:19:10 +02:00
Andreas Schneider
c502634107 Measure time of the journal creation. 2008-04-29 14:07:18 +02:00
Andreas Schneider
27fb5d9128 Fix several bugs in the journal query function. 2008-04-29 11:42:20 +02:00
Andreas Schneider
cc5c87068e Write the journal. 2008-04-29 11:22:06 +02:00
Andreas Schneider
f8434dd780 Add function to write and close the journal. 2008-04-29 11:21:43 +02:00
Andreas Schneider
eadbaa76d5 Use the status flag for the synchronizer. 2008-04-29 11:20:52 +02:00
Andreas Schneider
0377c034f6 Check if journal exists to do update detection. 2008-04-29 09:27:49 +02:00
Andreas Schneider
0ff11694e9 Move ignore exclude files and check link count of files. 2008-04-29 09:26:42 +02:00
Andreas Schneider
cc4c636ed4 Add function to create tables in the journal. 2008-04-29 09:24:28 +02:00
Andreas Schneider
98962337c4 Use a struct for the journal. 2008-04-29 09:23:51 +02:00
Andreas Schneider
69a4f9f1c1 Change name of link_count to nlink. 2008-04-29 09:07:30 +02:00
Andreas Schneider
2ea310ab54 Fill stat and add it to the red black tree.
Update detection needs still to be done.
2008-04-28 16:50:25 +02:00
Andreas Schneider
fac0ba914f Print out memory usage between update detection. 2008-04-28 16:49:21 +02:00