Skip to content

Commit

Permalink
rgw:add a s3 API of make torrent for a object
Browse files Browse the repository at this point in the history
When you execute the command gettorrent of a object, a torrent file will be produced and returned.
The torrent also will be save into a pool named default.rgw.torrent.
If the torrent of a object exists in default.rgw.torrent, it will be returned.

Signed-off-by: zhouruisong <236131368@qq.com>
  • Loading branch information
zhouruisong committed Jun 15, 2016
1 parent 8d7b8e1 commit c956894
Show file tree
Hide file tree
Showing 4 changed files with 677 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/config_opts.h
Expand Up @@ -166,6 +166,13 @@ OPTION(heartbeat_file, OPT_STR, "")
OPTION(heartbeat_inject_failure, OPT_INT, 0) // force an unhealthy heartbeat for N seconds
OPTION(perf, OPT_BOOL, true) // enable internal perf counters

OPTION(torrent_tracker, OPT_STR, "") // torrent_tracker
OPTION(torrent_createby, OPT_STR, "") // torrent_createby
OPTION(torrent_comment, OPT_STR, "") // torrent_comment
OPTION(torrent_encoding, OPT_STR, "") // torrent_encoding
OPTION(torrent_origin, OPT_STR, "") // torrent_origin
OPTION(sha_unit, OPT_INT, 512*1024) //sha_unit 521K

OPTION(ms_type, OPT_STR, "simple") // messenger backend
OPTION(ms_tcp_nodelay, OPT_BOOL, true)
OPTION(ms_tcp_rcvbuf, OPT_INT, 0)
Expand Down

0 comments on commit c956894

Please sign in to comment.