Klaas Freitag
2fcfe883eb
Proper error reporting for HBF PUT fails.
2013-07-30 08:56:53 +02:00
Klaas Freitag
d53a3f2f98
Only log when really something was transmitted.
2013-07-29 15:27:22 +02:00
Olivier Goffart
acc0b53916
Added a comment in the exclude list config file
2013-07-29 15:04:00 +02:00
Olivier Goffart
af7e36422e
Add ignore files that need cleanup
...
Add the possibility to ignore files but specify they should be deleted
if the directory is deleted.
2013-07-29 15:03:25 +02:00
Olivier Goffart
45c98bad19
fix crash
2013-07-29 15:03:05 +02:00
Klaas Freitag
1e1df5d94d
ownCloud: Add a log entry when chunk is uploaded.
2013-07-29 14:27:01 +02:00
Klaas Freitag
2cc5bbe187
ownCloud: Some fixes to promote the correct progress.
2013-07-26 13:43:02 +02:00
Klaas Freitag
0a15f0e7ad
New progress API: Consolidate to one progress Callback having all info.
...
Before there were two callbacks, one for the individual file and one for
for the overall progress. Now its more easy and clean.
2013-07-25 15:36:46 +02:00
Olivier Goffart
f06fead44f
fix test
2013-07-25 10:55:57 +02:00
Olivier Goffart
3d1994747a
Also allow to specify a % of bandwidth for the limit
2013-07-24 18:17:59 +02:00
Olivier Goffart
6109b22aa6
Implement bandwidth limitation
2013-07-24 18:17:54 +02:00
Olivier Goffart
09e30509d1
Propertly report the error from the server while uploading
2013-07-23 17:40:44 +02:00
Olivier Goffart
75682f981d
Add a threshold to httpbf before splitting the files
2013-07-23 17:31:31 +02:00
Olivier Goffart
7a8b07443f
Fix cases where the file has been replaced by another with the same mtime
...
IL issue 169
2013-07-23 16:03:50 +02:00
Klaas Freitag
917cc7faab
Base overall progress data on both trees not just one
2013-07-22 12:55:24 +02:00
Klaas Freitag
a12782dccf
Add callback parameter and call overall progress bar for initialization.
2013-07-19 17:04:31 +02:00
Klaas Freitag
59ed14698c
Fix header
2013-07-19 17:04:13 +02:00
Klaas Freitag
45cdcb7502
Add a progress callback for overall and individual file up and download
...
progress.
2013-07-19 12:26:48 +02:00
Olivier Goffart
fdd1f885a1
Fixup previous commit.
...
We should not overwrite the error
2013-07-16 13:34:59 +02:00
Olivier Goffart
db7e8560cf
Mark parent directory as error if a file fails to download
...
The result is that we do not save the parent directory in the db
(recursively) so on the next sync, we don't read this directory from the
db as there might be missing entries since download error are not saved
in the db.
2013-07-16 13:34:47 +02:00
Olivier Goffart
6beb96293f
Do not save for resume if there is an error from the server
...
errors (such as 500) may mean the the server do not suport
resuming
2013-07-16 13:34:22 +02:00
Markus Goetz
1263ca990d
Fix download resuming on OS X
2013-07-16 13:33:55 +02:00
Klaas Freitag
e12adbcc7e
Rather use _fstat64 on win32 for proper size types.
2013-07-16 13:32:40 +02:00
Klaas Freitag
32559175c9
Use correct stat struct on all platforms.
2013-07-16 12:22:52 +02:00
Daniel Molkentin
6882880ba7
Add csync_clear_exclude_list
...
This requires the introduction of c_strlist_clear(),
which does not destroy, but only clear a string list.
2013-07-15 14:37:18 +02:00
Klaas Freitag
207ee9955f
Dealloc the query cache in statedb_close
2013-07-12 16:37:33 +02:00
Klaas Freitag
365fb2a5fe
Optimize the get_stat_by_hash function.
2013-07-12 16:22:58 +02:00
Klaas Freitag
4aa0c58bb0
Remove duplicate close, coverity found.
2013-07-12 11:41:51 +02:00
Klaas Freitag
c082a3f763
Preinitialize buf with zero, coverity found.
2013-07-12 11:41:51 +02:00
Klaas Freitag
ebc98f07c3
Cleaned code a bit, covertiy found.
2013-07-12 11:41:51 +02:00
Klaas Freitag
90873a9ae8
Release memory properly in error case, Coverity found.
2013-07-12 11:41:51 +02:00
Klaas Freitag
566f5ce614
Close fd even if its zero. Coverity Found.
2013-07-12 11:41:50 +02:00
Klaas Freitag
d0edcd1fba
Better do not use the var name abort as it confuses syntax highlighter.
2013-07-11 17:01:49 +02:00
Olivier Goffart
52c7ff415e
Fix the test
...
After commit a25fbb6160
, we re compute the
hash before insterint into the db. Which means that the test need to
have different paths in order to succeed
2013-07-10 12:15:53 +02:00
Olivier Goffart
c20a2bf16b
Add a way to configure the block size for httpbf
2013-07-10 12:15:11 +02:00
Daniel Molkentin
d22eb0ceef
win32: Read inode values even though file is open
...
According to MSDN, CreateFile can be passed 0 if only
stat-like info is required.
This allows to upload locked files.
2013-07-10 11:19:07 +02:00
Klaas Freitag
4489eb6cc0
Allow newly created database in test.
2013-07-09 17:31:06 +02:00
Klaas Freitag
b7d549e5a0
Check for zero size database file.
2013-07-09 17:30:40 +02:00
Olivier Goffart
a25fbb6160
Save the right filename in the DB when there are new files on a renamed folder
2013-07-09 16:30:09 +02:00
Olivier Goffart
68a427d7e4
Make sure the directory after a rename has a md5
...
If not when we do a read from db later, the updater will beleive the
directory is no longer on the server
2013-07-09 16:29:21 +02:00
Olivier Goffart
73ef2c1b6f
Do RENAMES before any PUT
...
In order to fix mirall issue #731
where one rename a file then re-create the original
2013-07-09 16:29:03 +02:00
Klaas Freitag
5f0f49b5bd
Use new c_rename function.
2013-07-09 11:13:58 +02:00
Klaas Freitag
3a51c9ce8b
Added rename function to csync library.
2013-07-09 11:11:49 +02:00
Klaas Freitag
c1a73564f5
Fix for coverity CID 1029795
2013-07-08 12:26:44 +02:00
Klaas Freitag
2befdf50da
Fix coverity CID 1029796
2013-07-08 12:26:44 +02:00
Klaas Freitag
6898d96a5c
Do not store userdata but retrieve dynamically through csync API.
2013-07-05 18:43:29 +02:00
Klaas Freitag
82569559cc
Added function to retrieve the progress callback.
2013-07-05 18:41:41 +02:00
Klaas Freitag
7eb3f901a6
Experimental: Fix the mv and recreate case as described in mirall#731.
...
Please note that this needs review and test and probably does not fully
fix it. It just makes sure that renames are handled before PUTs.
2013-07-03 22:38:45 +02:00
Klaas Freitag
7ef620f58d
Merge remote-tracking branch 'ogoffart/dav' into dav
2013-07-03 16:36:28 +02:00
Klaas Freitag
44a52ad951
Removed useless logging.
2013-07-03 16:32:33 +02:00