lins05
cfe04ba245
Merge branch 'server-addr'
2013-02-20 15:23:18 +08:00
Jiaqiang Xu
788ada4b31
[client] Fix a bug of shutting down seafile while it's commiting.
...
The current code update index before commit. This will cause data
lost in the following sequence:
1. add and update index
2. restart
3. GC
4. add and update index and commit
The blocks added in the first add operation are removed by GC
since there is no commit pointing to them.
The second add operation won't add those blocks again because
the index has been updated.
2013-02-06 15:52:18 +08:00
lins05
8875ff5e1b
[client] edit server address of a repo
...
If the ccnet-server address is changed (either address or
port is changed), on the client side the user should edit the
repo's server address/port accorodingly.
2013-02-05 16:07:05 +08:00
Jiaqiang Xu
d9824a91d9
[server] Speed up repo token checking.
...
Currently decrypting repo token consume too much CPU time.
Add a cache to speed up this.
2013-02-05 14:10:57 +08:00
Jiaqiang Xu
9a5e74f53e
Remove warning when failed to get repo owner.
2013-02-04 11:43:05 +08:00
lins05
e40bc7c956
fixed get_dir_size
2013-02-04 11:30:10 +08:00
lins05
81abed64d3
fixed some spelling errors
2013-02-02 13:09:03 +08:00
lins05
ef63d14163
fixed a bug in get_dir_size
2013-01-30 16:20:16 +08:00
Jiaqiang Xu
a67602d83c
[win] Fix some compile warnings.
2013-01-30 11:53:23 +08:00
Jiaqiang Xu
52c9699347
[win] Improve "mmap" wrapper for Windows.
...
* Should not call die() function.
* Add warning for mmap errors.
2013-01-29 21:18:59 +08:00
lins05
05d90a88f1
[server] improve seaf_dir_from_data and calc_last_modified
2013-01-29 19:23:51 +08:00
Jiaqiang Xu
d69a24aa92
Merge branch '1.4'
2013-01-28 15:10:43 +08:00
lins05
2198c1f45b
[server] add get_dir_size rpc
2013-01-28 10:20:50 +08:00
Jiaqiang Xu
e72b57ca6f
[server] Adding shares into quota usage.
...
There is an option in seafile.conf switch this feature on/off:
[quota]
calc_share_usage = [true|false]
2013-01-21 13:59:15 +08:00
Jiaqiang Xu
10431f3920
Merge branch '1.4'
2013-01-19 10:39:10 +08:00
Jiaqiang Xu
3352385cf2
[server] Fix a bug of showing deleted files when all history are kept.
...
Should convert commit->ctime to gint64 before comparing it with -1.
2013-01-18 14:48:28 +08:00
Jiaqiang Xu
1bb1d5b0cf
[client] Check password before starting download.
2013-01-16 17:50:46 +08:00
Jiaqiang Xu
8dc0510ee4
[client] Improve file chunking and worktree monitoring.
...
Linux:
* Improve inotify events handling. Auto monitor a dir once it's created.
* No need to refresh monitor after commit.
Chunking:
* If file size changed while chunking, return failure.
* Use total size of blocks as file size for seafile object.
2013-01-14 14:21:37 +08:00
Jiaqiang Xu
931be13c99
[server] Handle libzdb exception in some functions.
2013-01-11 15:15:09 +08:00
Jiaqiang Xu
f73c613130
[server] Fix a few bugs.
...
Database related:
* Handle exception raised by libzdb ResultSet_next();
* GC should stop if fail to get repo list due to I/O error.
* Monitor shouldn't create tables on startup.
* Handle database creation failure on startup.
* Fix transaction bug in seaf_branch_manager_test_and_update_branch().
* Only retry a fix number of times in gen_new_commit().
Others:
* "common.h" should be included as the first header file.
* Fix a bug in accept_connection().
2013-01-11 13:23:13 +08:00
Jiaqiang Xu
5d4f23639a
[client] Fix transfer rate display.
...
* Display rate of the last second instead of this second.
* Display 0% 0KB/s in repo.html.
2013-01-07 15:38:58 +08:00
Jiaqiang Xu
099f45f90c
[server] Allow selecting how many deleted files to show in recycle.
2013-01-04 11:45:09 +08:00
Jiaqiang Xu
0f02daa054
[server] Allow setting history length for each repo.
2013-01-04 11:45:09 +08:00
lins05
aaa3896a3f
calc last modified time of files under a dir
2013-01-03 10:59:06 +08:00
Jiaqiang Xu
930e7fddc2
Fix a bug in index code.
2012-12-30 11:00:09 +08:00
Jiaqiang Xu
9b689ddd1b
[win] Fix bug of handling files larger than 4GB.
...
g_lstat() returns 32-bit struct stat on Windows, use _wstat64() instead.
2012-12-30 10:59:50 +08:00
Jiaqiang Xu
c04baab93a
Fix bugs in transfer protocols.
...
* Send update/response properly before ccnet_processor_done().
* Fix file handle leak in recv_blocks().
* Don't access processor memory in worker thread.
* Close data socket if error occurs in accept_connection().
* Use tdata->state instead of processor->state.
* Disable deprecated processors in seaf-server.
2012-12-30 10:54:41 +08:00
lins05
fe45c93df6
change get_file_by_path to get_{file, dir}_id_by_path
2012-12-24 14:43:54 +08:00
Jiaqiang Xu
5a409630b4
Fix bug when dir entry name is too long.
...
* truncate the name in memory when load it from disk;
* ignore file/dir with too long name in commit.
2012-12-21 10:17:09 +08:00
Jiaqiang Xu
68dc592bb0
Fix a bug in file chunking algorithm.
2012-12-20 17:12:26 +08:00
Jiaqiang Xu
8a484fd8ef
[client] Fix minor bugs in sync algorithm.
...
* Transition to error state when commit fails;
* In manual sync, start syncing even no files to be commited;
* Allows to add .git files.
2012-12-20 10:25:40 +08:00
Jiaqiang Xu
fb488abe71
[win] Replace PATH_MAX with SEAF_PATH_MAX.
...
PATH_MAX is set to 260 in MinGW.
2012-12-19 17:08:25 +08:00
Jiaqiang Xu
d8547a8c0f
Clients don't unsync repo if it's corrupted on server.
2012-12-15 15:05:35 +08:00
Jiaqiang Xu
b11bcb61b4
Fix a few bugs on seafile server.
...
* Should use EVP_DecryptFinal_ex() in httpserver;
* Close unused fd for transfer.
2012-12-14 19:46:07 +08:00
Jiaqiang Xu
c438cce9f2
Fix a bug in encrypted data transfer.
2012-12-13 20:51:46 +08:00
Jiaqiang Xu
6055e8db0b
[server] Support for keeping partial history data.
2012-11-29 11:48:17 +08:00
Jiaqiang Xu
b6b75ed613
Add stand-alone server GC program.
2012-11-29 11:48:17 +08:00
Jiaqiang Xu
2c07252c18
Improve GC performance.
...
* Don't traverse duplicated dirs.
* On the client, record remote head id in database after cloning
a new repo.
2012-11-26 10:44:41 +08:00
Jiaqiang Xu
2fc5103a32
Encrypt data transfer.
...
Use AES with 256-bit CBC cipher.
2012-11-22 20:11:21 +08:00
zhengxie
5000a16314
[server] Added unset password rpc
2012-11-22 11:03:44 +08:00
Jiaqiang Xu
b582367c6e
[client] Fix bugs of transfer scheduling algorithm.
...
Don't schedule blocks based on transfer speed.
2012-11-16 15:32:46 +08:00
Jiaqiang Xu
bbce60dfbf
[http] Add 'head_id' argument to put_file RPC.
...
Head id is the commit id on which this update applies.
2012-11-04 13:11:35 +08:00
lins05
0f3703d625
[server] rewrite file revision
...
Traverse the commit history and compare each one with its parent(s)
2012-11-01 11:10:44 +08:00
Jiaqiang Xu
54855dafe7
[http] Support uploading multiple files.
2012-10-31 11:16:35 +08:00
Jiaqiang Xu
7a2805a412
Complete quota management RPC.
2012-10-26 14:31:23 +08:00
Jiaqiang Xu
44ffce92b9
Implemented a new merge algorithm.
...
This algorithm is simplified and doesn't assume worktree and index.
It just merge fs objects and write out merged fs objects.
Now for repo operations on seahub, if there are concurrent updates,
the two commits will be merged.
2012-10-24 13:42:40 +08:00
gnehzuil
6526b62ad8
Make distcheck pass.
2012-10-20 15:16:34 +08:00
lins05
1ab18e1a31
add rpc to get file id by (commit, path)
2012-10-18 14:48:06 +08:00
Jiaqiang Xu
2d88bf522d
Check if seafdir is sorted before sort it.
2012-10-13 13:33:23 +08:00
Jiaqiang Xu
42d28cd8da
Sort entries in seafdir when needed.
...
Some algorithms such as merge requires dir entries to be sorted.
But due to a bug, older seafdir entries are not sorted on disk.
2012-10-12 19:55:38 +08:00