Matt Joiner
4f04d13532
Fix fs test link now that Debian 9.2 came out
2017-10-12 17:52:15 +11:00
Matt Joiner
25d1f371c3
fs: Some test tidying
2017-09-22 13:46:00 +10:00
Matt Joiner
3879364536
fs/test.sh: umount requires sudo
2017-09-18 13:51:05 +10:00
Matt Joiner
c93f5d3038
test.sh: Unmount and wait for torrentfs to return after completion
2017-09-18 12:17:28 +10:00
Matt Joiner
639c49f1ae
Rename fs/unwedge-tests so it gets synced to test servers
2017-09-18 12:16:05 +10:00
Matt Joiner
f7e07237ed
fs: Fix tests now that data verification isn't automatic
2017-09-15 19:34:42 +10:00
Matt Joiner
53954f7807
Get torrentfs fuse test working
2017-08-29 14:02:30 +10:00
Matt Joiner
7d55f573f5
Maintain a torrent.Reader for each file handle
...
This means that readahead will work much better. Addresses https://github.com/anacrolix/torrent/issues/182 .
2017-08-28 01:42:02 +10:00
Matt Joiner
58d66a1b62
fs: Move file Read behaviour onto a new handle type
2017-08-27 14:19:58 +10:00
Matt Joiner
afb83e792b
fs/test.sh: Update torrentfs arguments and wait for info to be fetched so file isn't found
2017-08-27 14:03:10 +10:00
Matt Joiner
52741c2671
TestUnmountWedged: Don't deadlock if the Read fails
2017-08-27 14:00:37 +10:00
Matt Joiner
eb32bb821a
fs: Add a test script
2017-08-26 13:25:27 +10:00
Matt Joiner
625cca3b6f
fs: Move fileNode stuff into its own file
2017-08-26 13:25:04 +10:00
Matt Joiner
54764254f4
Skip on fusermount failure
2017-06-01 15:39:44 +10:00
Matt Joiner
714a72cdd4
Tighten FUSE test skipping
2017-06-01 11:19:45 +10:00
Matt Joiner
3602d90b65
gofmt simplify
2016-11-22 14:01:09 +11:00
Matt Joiner
2a1cef7c9e
Remove the InfoEx type, and don't generate its infohash on the fly
...
Fixes #106 .
2016-08-26 20:29:05 +10:00
perses
39cf5a7fde
fs: fix isSubPath for top-level directories ( #105 )
2016-08-01 23:56:56 +10:00
Matt Joiner
dce3a7f675
Rework Client listeners
...
In particular, if the ListenAddr used a dynamic port ":0", and both TCP and uTP were enabled. If the TCP listen succeeded, and the uTP did not, the TCP listener was leaked, and another port number was not tried.
2016-05-11 21:11:52 +10:00
Matt Joiner
b5812bb0b7
Remove the last of the "config dir" stuff
...
This just conflates the Client. It should be done orthogonally.
2016-05-05 23:05:28 +10:00
Matt Joiner
2d160b0419
metainfo.InfoEx.Hash becomes a function, UpdateBytes is added, and Bytes used in marshalling
...
Fixes #80 .
2016-05-05 22:40:38 +10:00
Matt Joiner
28c9ec2bd1
Some changes to metainfo.InfoEx and testutil
2016-04-30 11:07:29 +10:00
Seth Hoenig
9f4bf70e17
refactor struct identifiers to follow conventional go names
2016-04-18 23:11:11 -05:00
Matt Joiner
f83771b660
Apply ineffassign linter
2016-04-04 15:39:26 +10:00
Matt Joiner
8f164ae956
Remove some of the magic ConfigDir stuff
...
This might become a helper. Torrent file cache still remains.
2016-04-04 14:04:48 +10:00
Matt Joiner
d3a1c79c79
Merge Torrent and torrent types
2016-04-03 18:40:43 +10:00
Matt Joiner
0a3a5d6ae0
Finish fixing tests
2016-03-29 00:24:00 +11:00
Matt Joiner
b97b50aca9
New storage interface
2016-03-28 20:38:30 +11:00
Matt Joiner
fd37f5c24b
fs: Fix what looks like a glaring mistake: If Seek failed on the torrent reader, it would have got stuck
...
Since Seek is artificial, and the offsets are usually checked in the caller, it looks like it never failed anyway.
2016-02-22 02:44:29 +11:00
Matt Joiner
ca5080a382
fs: Change listen addrs to localhost in tests
...
Seems to improve reliability. Maybe the missinggo.Addr{IP,Port} change did something.
2016-02-22 02:39:49 +11:00
Matt Joiner
815d118d6e
fs: Tidy up tests
2016-02-22 02:38:52 +11:00
Matt Joiner
fe9d5702f6
Fixes for torrent.Reader not having ReadAt
2016-01-18 20:12:51 +11:00
Matt Joiner
153c13db43
Revert "Merge pull request #54 from zhulik/master"
...
This reverts commit 5cf75b869c
, reversing
changes made to 09050ff2c5
.
2016-01-06 12:19:49 +11:00
Gleb Sinyavsky
48c3df2d43
Refactorings
2016-01-05 11:48:16 +03:00
Gleb Sinyavsky
052a899f60
cmd utils fixed
2015-12-27 14:59:07 +03:00
Matt Joiner
23ee45e09f
fs test: Missed package specifier
2015-10-02 00:16:50 +10:00
Matt Joiner
b7a8bb7570
Simplify the torrent Data interface
...
None of the methods are optional anymore. Removed the nasty wrappers for some data implementations. Moved data.Data back into the main torrent package. Should make it much easier to understand for people implementing their own Data implementations.
2015-10-02 00:09:04 +10:00
Matt Joiner
e735aeeee3
fs: Update for changes in bazil.org/fuse
2015-08-23 19:25:33 +10:00
Matt Joiner
d077fed72d
Some utils moved to missinggo
2015-08-04 00:29:01 +10:00
Matt Joiner
3ef59be02d
fs: Remove errant logging
2015-07-22 19:07:01 +10:00
Matt Joiner
8146001893
fs: Fix test when :50007 already in use
2015-06-23 02:03:08 +10:00
Matt Joiner
c76f3c1ead
Upstream bazil.org/fuse changed again ಠ_ಠ
2015-06-22 23:02:29 +10:00
Matt Joiner
ced5733c88
Improve uploading/seeding
2015-06-16 16:57:47 +10:00
Matt Joiner
e871dfbbce
torrentfs: Fix bad import
2015-06-03 00:14:55 +10:00
Matt Joiner
9a0f830395
Upstream bazil.org/fuse changes again...
2015-06-02 23:59:25 +10:00
Matt Joiner
c5208569ca
Apply sortimports
2015-04-30 00:31:34 +10:00
Matt Joiner
0ec0302d1c
Publicly expose Torrent.GotInfo
2015-04-28 15:24:17 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
8f4d0f3577
fs: Improve test error handling if FUSE isn't available
2015-04-27 14:06:00 +10:00
Matt Joiner
28b299e7c8
Rework the Torrent Reader interface, to allow reader options, and add "responsive" as one such option
...
Had several weeks of testing. Removes a lot of the "helper" reading methods, but this was necessary to allow per-Torrent reading options.
2015-04-14 23:59:41 +10:00
Matt Joiner
814aa311c8
fs: Improve test logging
2015-04-08 01:43:50 +10:00
Matt Joiner
9fdd6be3f3
fs: Remove noisy debug logging
2015-04-01 14:31:29 +11:00
Matt Joiner
f58c7203c7
fs: Root node wasn't listing: Bazil keeps changing his interface
2015-04-01 12:15:44 +11:00
Matt Joiner
3aa78763aa
Use rogpeppe's sortimports to fix this goimports ordering madness
2015-03-26 17:18:08 +11:00
Matt Joiner
01210a4577
Fixes for changes to basil.org/fuse
2015-03-25 17:25:24 +11:00
Matt Joiner
842a32ae0c
Rewrite import paths for migration from Bitbucket
2015-03-20 16:37:44 +11:00
Matt Joiner
ad6ac3f2cd
More cleaning of public interface
2015-03-08 17:28:14 +11:00
Matt Joiner
3e753bb8ad
Change up the data storage interfaces a bit
2015-03-07 17:11:45 +11:00
Matt Joiner
a2d69b4931
Make blob data stateful
2015-02-27 12:45:55 +11:00
Matt Joiner
8f744300cc
Add piece blob torrent.Data storage, and move testutil to internal/, add basic transfer test for Client and blob
2015-02-27 01:46:02 +11:00
Matt Joiner
315c703456
Rename TorrentData->Data
2015-02-27 01:43:37 +11:00
Matt Joiner
22746dda23
Ditch the intermediate MetaInfo type
2015-02-26 22:17:58 +11:00
Matt Joiner
fd5c0798e3
fs test: Resolve localhost, some platforms are funny about it
2015-02-26 16:11:33 +11:00
Matt Joiner
0ce6a5fe51
Fix imports
2015-02-25 14:51:12 +11:00
Matt Joiner
0eb418360b
Allow configuring Client torrent data opener, config dir, disabling metainfo cache, and prune with a timer instead of goroutine
2015-02-25 14:48:39 +11:00
Matt Joiner
5eb0428f8e
fs: Ensure DownloadOnDemand runs through UTP
2015-02-18 21:33:42 +11:00
Matt Joiner
c3a592ac39
Updates due to changes to bazil.org/fuse
2015-02-06 16:03:33 +11:00
Matt Joiner
b460b1b0c2
fs/unwedge-tests: Can't assume /tmp on OSX
2015-01-28 22:39:12 +11:00
Matt Joiner
4fbe138c8c
Fix TestUnmountWedged test on OSX
2015-01-11 13:21:14 +11:00
Matt Joiner
3a221dc57d
Rip out the pieces by bytes left and responsive download strategy stuff
2014-12-26 17:15:17 +11:00
Matt Joiner
7b80153387
fs: Improve tests
2014-12-03 12:53:10 -06:00
Matt Joiner
3f44ed8c43
Improve fs/unwedge tests
2014-12-03 12:52:08 -06:00
Matt Joiner
91c2c1f5c7
Piece priorities, torrent read interface and many fixes
2014-12-03 01:07:50 -06:00
Matt Joiner
c75f79b097
Speed up tests, allow -short for some UDP tracker stuff
2014-12-02 14:23:01 -06:00
Matt Joiner
82ca11faa9
Destroy the torrent FS on exit signals so ongoing syscalls don't block the unmount
2014-12-01 14:30:50 -06:00
Matt Joiner
6d2f1c8cd7
Disable IP block list in some tests
2014-12-01 03:28:39 -06:00
Matt Joiner
1942d5b73b
Fix default torrent client address, and leaked resources
2014-11-21 00:07:04 -06:00
Matt Joiner
c4bae8f4c2
Ignore failures due to FUSE not available
2014-11-20 16:28:14 -06:00
Matt Joiner
e4a0493bd0
No longer require FUSE to run fs test
2014-11-20 12:50:53 -06:00
Matt Joiner
8518b54cde
torrentfs tests: Use dynamic port
2014-11-19 20:01:03 -06:00
Matt Joiner
06e240e198
Expose a wrapped metainfo type with helper methods
2014-11-18 14:36:27 -06:00
Matt Joiner
77e064a0f5
Allow the client ID to be set in the config
2014-11-16 13:54:43 -06:00
Matt Joiner
0b8ddd8720
Fix localhost assumption in connecting 2 clients in tests
2014-11-16 13:06:32 -06:00
Matt Joiner
ecf2639856
Add magnet-metainfo, tool to download magnet to torrent file
2014-09-25 18:05:52 +10:00
Matt Joiner
6aa5038234
On torrentfs read, read the full requested buffer and don't return early
2014-09-14 03:44:07 +10:00
Matt Joiner
5668582c8e
Fix crashes in torrentfs.fileNode.Read
2014-08-28 08:09:41 +10:00
Matt Joiner
f94e49a8ba
Make use of FUSE readahead
2014-08-28 08:08:59 +10:00
Matt Joiner
94e03a7928
Add some counters and tracking to torrentfs events
2014-08-28 08:08:09 +10:00
Matt Joiner
1bb5ee9006
Some logic improvements to torrentfs.fileNode.Read
2014-08-25 22:15:18 +10:00
Matt Joiner
2d9c22ae1e
Misc trivial improvements
2014-08-25 22:14:10 +10:00
Matt Joiner
f4687ba28f
Improve the log message for torrentfs reads
2014-08-22 01:37:34 +10:00
Matt Joiner
74f05db2ea
Clean up imports
2014-08-21 21:08:56 +10:00
Matt Joiner
40fd1d647c
Tidy up the torrent and DHT APIs
2014-08-21 18:07:06 +10:00
Matt Joiner
1ceb470bfc
torrentfs: Support torrents that don't yet have their metadata
2014-07-23 14:55:38 +10:00
Matt Joiner
9edef94a2b
Script that unblocks unit tests frozen in FUSE
2014-07-18 02:39:09 +10:00
Matt Joiner
28afa748e7
API changes in github.com/anacrolix/libtorgo
2014-07-13 17:37:12 +10:00
Matt Joiner
c96293a111
Can now download from magnet links
2014-06-28 19:38:31 +10:00
Matt Joiner
7c532969d3
Various improvements that've had a lot of testing
2014-06-26 18:06:33 +10:00
Matt Joiner
c509f0b1ea
torrentfs: Reading an offset past the end of a file caused out of bounds panic
2014-06-26 01:36:25 +10:00
Matt Joiner
110aa733a4
Make the readahead on ResponsiveDownloadStrategy customizable
2014-05-29 01:30:59 +10:00