cloudstore.git
12 years agoinit script for transmission gearman worker
Dobrica Pavlinusic [Mon, 16 Jan 2012 19:38:31 +0000 (20:38 +0100)]
init script for transmission gearman worker

12 years agodon't remove download dir without username
Dobrica Pavlinusic [Mon, 16 Jan 2012 19:32:30 +0000 (20:32 +0100)]
don't remove download dir without username

12 years agohandle better restart with running clients
Dobrica Pavlinusic [Mon, 16 Jan 2012 19:28:18 +0000 (20:28 +0100)]
handle better restart with running clients

12 years agodocument API
Dobrica Pavlinusic [Wed, 11 Jan 2012 22:34:20 +0000 (23:34 +0100)]
document API

12 years agotest torrent_list and display test names
Dobrica Pavlinusic [Wed, 11 Jan 2012 22:34:01 +0000 (23:34 +0100)]
test torrent_list and display test names

12 years agosend torrent via rsync and trigger torrent_download
Dobrica Pavlinusic [Wed, 11 Jan 2012 00:00:02 +0000 (01:00 +0100)]
send torrent via rsync and trigger torrent_download

12 years agoencode destination name in download directory name
Dobrica Pavlinusic [Mon, 9 Jan 2012 23:39:34 +0000 (00:39 +0100)]
encode destination name in download directory name

12 years agodump more data with DEBUG=1
Dobrica Pavlinusic [Mon, 9 Jan 2012 23:33:29 +0000 (00:33 +0100)]
dump more data with DEBUG=1

12 years agoimplement transmission download-done via script and gearman
Dobrica Pavlinusic [Mon, 9 Jan 2012 22:29:30 +0000 (23:29 +0100)]
implement transmission download-done via script and gearman

12 years agoadded reload
Dobrica Pavlinusic [Mon, 9 Jan 2012 22:09:10 +0000 (23:09 +0100)]
added reload

12 years agofix download-dir and perm
Dobrica Pavlinusic [Mon, 9 Jan 2012 21:50:35 +0000 (22:50 +0100)]
fix download-dir and perm

12 years agotorrent_download
Dobrica Pavlinusic [Mon, 9 Jan 2012 20:08:16 +0000 (21:08 +0100)]
torrent_download

12 years agotorrent_share gearman worker
Dobrica Pavlinusic [Mon, 9 Jan 2012 20:07:50 +0000 (21:07 +0100)]
torrent_share gearman worker

12 years agolist torrent in transmission
Dobrica Pavlinusic [Mon, 9 Jan 2012 19:25:33 +0000 (20:25 +0100)]
list torrent in transmission

12 years agoremove debug output
Dobrica Pavlinusic [Mon, 9 Jan 2012 18:56:02 +0000 (19:56 +0100)]
remove debug output

12 years agostart transmission as seeder
Dobrica Pavlinusic [Mon, 9 Jan 2012 18:12:58 +0000 (19:12 +0100)]
start transmission as seeder

12 years agodocument add and remove
Dobrica Pavlinusic [Mon, 9 Jan 2012 18:12:11 +0000 (19:12 +0100)]
document add and remove

12 years agomake TR_AUTH optional
Dobrica Pavlinusic [Sun, 8 Jan 2012 14:23:29 +0000 (15:23 +0100)]
make TR_AUTH optional

12 years agoremove torrent
Dobrica Pavlinusic [Sun, 8 Jan 2012 13:47:26 +0000 (14:47 +0100)]
remove torrent

12 years agoadded add torrent command
Dobrica Pavlinusic [Sun, 8 Jan 2012 12:36:17 +0000 (13:36 +0100)]
added add torrent command

12 years agoadded auth using TR_AUTH env variable
Dobrica Pavlinusic [Sun, 8 Jan 2012 12:35:38 +0000 (13:35 +0100)]
added auth using TR_AUTH env variable

12 years agonicer output
Dobrica Pavlinusic [Sun, 8 Jan 2012 12:35:25 +0000 (13:35 +0100)]
nicer output

12 years agoexample transmission client
Dobrica Pavlinusic [Sun, 8 Jan 2012 12:02:25 +0000 (13:02 +0100)]
example transmission client

12 years agouse separate download directory for torrent
Dobrica Pavlinusic [Sat, 7 Jan 2012 21:15:53 +0000 (22:15 +0100)]
use separate download directory for torrent

12 years agouse new rtorrent socket location
Dobrica Pavlinusic [Sat, 7 Jan 2012 21:15:34 +0000 (22:15 +0100)]
use new rtorrent socket location

12 years agoscript to start rtrorrent seeder in screen
Dobrica Pavlinusic [Sat, 7 Jan 2012 16:11:04 +0000 (17:11 +0100)]
script to start rtrorrent seeder in screen

12 years agoforce removal of dangling rtorrent socket on start
Dobrica Pavlinusic [Sat, 7 Jan 2012 15:53:25 +0000 (16:53 +0100)]
force removal of dangling rtorrent socket on start

12 years agostart seeder with new layout and config in group
Dobrica Pavlinusic [Sat, 7 Jan 2012 15:31:02 +0000 (16:31 +0100)]
start seeder with new layout and config in group

12 years agocreate torrents in new /host/s?/torrent layout
Dobrica Pavlinusic [Sat, 7 Jan 2012 15:30:21 +0000 (16:30 +0100)]
create torrents in new /host/s?/torrent layout

12 years agoget params from group file
Dobrica Pavlinusic [Sat, 7 Jan 2012 14:00:15 +0000 (15:00 +0100)]
get params from group file

12 years agosupport second argument to return just single file md5sum
Dobrica Pavlinusic [Sat, 7 Jan 2012 13:41:17 +0000 (14:41 +0100)]
support second argument to return just single file md5sum

12 years agos1 tracker init script
Dobrica Pavlinusic [Sat, 7 Jan 2012 13:40:54 +0000 (14:40 +0100)]
s1 tracker init script

12 years agobetter error message
Dobrica Pavlinusic [Sat, 7 Jan 2012 13:17:47 +0000 (14:17 +0100)]
better error message

12 years agospecify user for test at command-line
Dobrica Pavlinusic [Sat, 7 Jan 2012 13:17:22 +0000 (14:17 +0100)]
specify user for test at command-line

12 years agoMerge branch 'master' of git.rot13.org:/git/cloudstore
Dobrica Pavlinusic [Thu, 22 Dec 2011 14:54:01 +0000 (15:54 +0100)]
Merge branch 'master' of git.rot13.org:/git/cloudstore

12 years agosend file returns file size instead of true value
Dobrica Pavlinusic [Thu, 22 Dec 2011 14:53:46 +0000 (15:53 +0100)]
send file returns file size instead of true value

12 years agosend arbitrary commands and dump more log with DEBUG=1
Dobrica Pavlinusic [Tue, 13 Dec 2011 14:20:57 +0000 (15:20 +0100)]
send arbitrary commands and dump more log with DEBUG=1

12 years agotest user_usage
Dobrica Pavlinusic [Tue, 13 Dec 2011 00:25:21 +0000 (01:25 +0100)]
test user_usage

12 years agocorrectly return used and quota
Dobrica Pavlinusic [Tue, 13 Dec 2011 00:16:15 +0000 (01:16 +0100)]
correctly return used and quota

12 years agotest guota_get used quota format
Dobrica Pavlinusic [Tue, 13 Dec 2011 00:16:03 +0000 (01:16 +0100)]
test guota_get used quota format

12 years agoadded user_usage Gearman API
Dobrica Pavlinusic [Tue, 13 Dec 2011 00:10:47 +0000 (01:10 +0100)]
added user_usage Gearman API

12 years agoupgrade old rsync secrets location to new one
Dobrica Pavlinusic [Tue, 13 Dec 2011 00:01:15 +0000 (01:01 +0100)]
upgrade old rsync secrets location to new one

12 years agogenerate gearman slice_quota function names
Dobrica Pavlinusic [Mon, 12 Dec 2011 23:54:44 +0000 (00:54 +0100)]
generate gearman slice_quota function names

12 years agosomewhat auto-configure
Dobrica Pavlinusic [Mon, 12 Dec 2011 23:54:07 +0000 (00:54 +0100)]
somewhat auto-configure

12 years agorework zfs worker to new slice_quota_(get|set) naming
Dobrica Pavlinusic [Mon, 12 Dec 2011 23:53:01 +0000 (00:53 +0100)]
rework zfs worker to new slice_quota_(get|set) naming

12 years agodeduce correct quota calls from slice name
Dobrica Pavlinusic [Mon, 12 Dec 2011 23:44:42 +0000 (00:44 +0100)]
deduce correct quota calls from slice name

12 years agoported back to Gearman::Client
Dobrica Pavlinusic [Mon, 12 Dec 2011 23:21:34 +0000 (00:21 +0100)]
ported back to Gearman::Client

12 years agocleanup md5sum_close
Dobrica Pavlinusic [Mon, 12 Dec 2011 23:03:02 +0000 (00:03 +0100)]
cleanup md5sum_close

12 years agofix test
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:50:01 +0000 (23:50 +0100)]
fix test

12 years agomore strictly parse login and path
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:48:06 +0000 (23:48 +0100)]
more strictly parse login and path

12 years agoimplmenet md5sum for rename_file (and rename :-)
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:44:08 +0000 (23:44 +0100)]
implmenet md5sum for rename_file (and rename :-)

12 years agomd5 user uses filename
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:43:35 +0000 (23:43 +0100)]
md5 user uses filename

12 years agoimplement send_file md5sum handling
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:33:26 +0000 (23:33 +0100)]
implement send_file md5sum handling

also return success value from link call

12 years agorewrite send_file to use new API
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:05:33 +0000 (23:05 +0100)]
rewrite send_file to use new API

12 years agocreate test file only if it doesn't exist
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:05:06 +0000 (23:05 +0100)]
create test file only if it doesn't exist

12 years agodie on invalid user_info
Dobrica Pavlinusic [Mon, 12 Dec 2011 22:04:24 +0000 (23:04 +0100)]
die on invalid user_info

12 years agocorrect last test and don't output to STDOUT to make prove happy
Dobrica Pavlinusic [Mon, 12 Dec 2011 20:55:51 +0000 (21:55 +0100)]
correct last test and don't output to STDOUT to make prove happy

12 years agorecord /.meta/md5sum and correct TokyoCabinet usage
Dobrica Pavlinusic [Mon, 12 Dec 2011 20:50:16 +0000 (21:50 +0100)]
record /.meta/md5sum and correct TokyoCabinet usage

12 years agodie on inter-slice send
Dobrica Pavlinusic [Mon, 12 Dec 2011 19:53:21 +0000 (20:53 +0100)]
die on inter-slice send

12 years agomake .meta path for rsync secrets file
Dobrica Pavlinusic [Mon, 12 Dec 2011 19:50:57 +0000 (20:50 +0100)]
make .meta path for rsync secrets file

This way it ends up owned by root which is a good thing.

12 years agocreate md5pool on empty slice
Dobrica Pavlinusic [Mon, 12 Dec 2011 19:50:17 +0000 (20:50 +0100)]
create md5pool on empty slice

12 years agobetter error reporting
Dobrica Pavlinusic [Mon, 12 Dec 2011 19:49:41 +0000 (20:49 +0100)]
better error reporting

12 years agomove rsync secrets file under .meta
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:59:11 +0000 (19:59 +0100)]
move rsync secrets file under .meta

12 years agorename to append_meta
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:58:56 +0000 (19:58 +0100)]
rename to append_meta

12 years agomove all users logs under .meta, and chown to user
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:54:38 +0000 (19:54 +0100)]
move all users logs under .meta, and chown to user

This allows to track size of log files and account it towards user quota

12 years agoremove unneeded user_info call
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:44:31 +0000 (19:44 +0100)]
remove unneeded user_info call

12 years agodon't steal own files
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:41:31 +0000 (19:41 +0100)]
don't steal own files

12 years agotest md5sum upload
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:16:17 +0000 (19:16 +0100)]
test md5sum upload

12 years agodon't put md5sum files into pool
Dobrica Pavlinusic [Mon, 12 Dec 2011 18:07:34 +0000 (19:07 +0100)]
don't put md5sum files into pool

12 years agotest md5sum handling
Dobrica Pavlinusic [Mon, 12 Dec 2011 17:52:04 +0000 (18:52 +0100)]
test md5sum handling

12 years agomd5sum_dump now returns md5(space,space)path
Dobrica Pavlinusic [Mon, 12 Dec 2011 17:51:33 +0000 (18:51 +0100)]
md5sum_dump now returns md5(space,space)path

12 years agoremove file send via file API
Dobrica Pavlinusic [Mon, 12 Dec 2011 17:44:32 +0000 (18:44 +0100)]
remove file send via file API

12 years agoignore all .sync files from client
Dobrica Pavlinusic [Mon, 12 Dec 2011 17:34:52 +0000 (18:34 +0100)]
ignore all .sync files from client

12 years agodelete returns true, include md5sum
Dobrica Pavlinusic [Mon, 12 Dec 2011 00:43:38 +0000 (01:43 +0100)]
delete returns true, include md5sum

12 years agowrap append from API
Dobrica Pavlinusic [Mon, 12 Dec 2011 00:12:24 +0000 (01:12 +0100)]
wrap append from API

12 years agomore store test cleanups
Dobrica Pavlinusic [Mon, 12 Dec 2011 00:12:15 +0000 (01:12 +0100)]
more store test cleanups

12 years agocorrectly create test file
Dobrica Pavlinusic [Mon, 12 Dec 2011 00:08:54 +0000 (01:08 +0100)]
correctly create test file

12 years agomore correct (not complete) chown and usage tracking for rsync
Dobrica Pavlinusic [Mon, 12 Dec 2011 00:01:02 +0000 (01:01 +0100)]
more correct (not complete) chown and usage tracking for rsync

12 years agoextract MD5sum handling using TokyoCabinet
Dobrica Pavlinusic [Sun, 11 Dec 2011 22:56:23 +0000 (23:56 +0100)]
extract MD5sum handling using TokyoCabinet

12 years agouse slice name and get dir from group
Dobrica Pavlinusic [Sun, 11 Dec 2011 12:55:20 +0000 (13:55 +0100)]
use slice name and get dir from group

12 years agoremove obsoleted shell code
Dobrica Pavlinusic [Sat, 10 Dec 2011 21:44:05 +0000 (22:44 +0100)]
remove obsoleted shell code

12 years agocreate rsync secrets
Dobrica Pavlinusic [Sat, 10 Dec 2011 21:43:18 +0000 (22:43 +0100)]
create rsync secrets

12 years agouse CloudStore::API
Dobrica Pavlinusic [Sat, 10 Dec 2011 21:39:37 +0000 (22:39 +0100)]
use CloudStore::API

12 years agouse bytes for create_user
Dobrica Pavlinusic [Sat, 10 Dec 2011 21:39:25 +0000 (22:39 +0100)]
use bytes for create_user

12 years agopass slice group name to new
Dobrica Pavlinusic [Sat, 10 Dec 2011 21:39:06 +0000 (22:39 +0100)]
pass slice group name to new

12 years agoinclude system quota using gearman
Dobrica Pavlinusic [Sat, 10 Dec 2011 17:20:31 +0000 (18:20 +0100)]
include system quota using gearman

12 years agotweaks
Dobrica Pavlinusic [Sat, 10 Dec 2011 17:16:16 +0000 (18:16 +0100)]
tweaks

12 years agoGearman::XS client implementation
Dobrica Pavlinusic [Sat, 10 Dec 2011 17:15:39 +0000 (18:15 +0100)]
Gearman::XS client implementation

12 years agofinish quota set/get worker and test it
root [Sat, 10 Dec 2011 15:35:28 +0000 (16:35 +0100)]
finish quota set/get worker and test it

12 years agolinux get quota worker
root [Sat, 10 Dec 2011 14:38:00 +0000 (15:38 +0100)]
linux get quota worker

12 years agocalculate usage based on log files
Dobrica Pavlinusic [Sat, 10 Dec 2011 13:53:19 +0000 (14:53 +0100)]
calculate usage based on log files

12 years agoadded delete
Dobrica Pavlinusic [Sat, 10 Dec 2011 00:51:34 +0000 (01:51 +0100)]
added delete

12 years agocreate sent/received logs
Dobrica Pavlinusic [Sat, 10 Dec 2011 00:13:18 +0000 (01:13 +0100)]
create sent/received logs

12 years agouser_info($login|$uid)
Dobrica Pavlinusic [Fri, 9 Dec 2011 21:22:16 +0000 (22:22 +0100)]
user_info($login|$uid)

12 years agobegin API rewrite to expose with gearman
Dobrica Pavlinusic [Fri, 9 Dec 2011 20:36:29 +0000 (21:36 +0100)]
begin API rewrite to expose with gearman

create_user

12 years agoquery zfs quota
Dobrica Pavlinusic [Fri, 9 Dec 2011 20:29:39 +0000 (21:29 +0100)]
query zfs quota

12 years agocleanup everything from ~u2002 for test
Dobrica Pavlinusic [Thu, 8 Dec 2011 13:40:03 +0000 (14:40 +0100)]
cleanup everything from ~u2002 for test

12 years agoappend logs to existing files
Dobrica Pavlinusic [Thu, 8 Dec 2011 13:39:32 +0000 (14:39 +0100)]
append logs to existing files

12 years agorename_file Gearman API
Dobrica Pavlinusic [Wed, 7 Dec 2011 22:11:06 +0000 (23:11 +0100)]
rename_file Gearman API

12 years agoextract init and cleanup
Dobrica Pavlinusic [Wed, 7 Dec 2011 21:10:10 +0000 (22:10 +0100)]
extract init and cleanup