2
0
mirror of synced 2025-02-24 14:48:27 +00:00

65 Commits

Author SHA1 Message Date
Matt Joiner
8a7ddab785 Switch to github.com/anacrolix/fuse 2021-11-16 18:20:02 +11:00
Matt Joiner
c6ee03f449 gofumpt 2021-11-08 14:47:01 +11:00
Shubhendra Singh Chauhan
0cdb33ede0 fixed code quality issues using DeepSource
* Added .deepsource.toml

* Removed empty default in select

* Removed unnecessary use of slice

* Fixed check for empty string
2021-01-30 15:23:49 +11:00
Matt Joiner
376ff763fe Apply staticcheck 2020-02-20 11:09:57 +11:00
Matt Joiner
cb1bf0f413 goimports -local 2019-08-21 20:58:40 +10:00
Radoslav Georgiev
4a31dffa95 torrentfs: fix a bug where the basenames of files are extracted incorrectly when listing the entries in a directory 2019-04-23 21:02:55 +10:00
Radoslav Georgiev
8249316c78 torrentfs: fix a bug where ENOENT is returned when the node for an entry in the root directory of a torrent is requested 2019-04-23 21:02:55 +10:00
Matt Joiner
fc4fab91f5 Switch to goimports import sorting
Used to use sortimports, but it's old, and goimports seems to have an opinion now.
2018-11-02 23:12:01 +11:00
Matt Joiner
eb448d132d Update context imports 2018-01-31 16:42:26 +11:00
Matt Joiner
0b553b296f Add File priorities
Fixes #220.
2018-01-21 22:49:12 +11:00
Matt Joiner
56109b387d Formatting and comments 2018-01-06 16:37:40 +11:00
Matt Joiner
9b718566ba Add File.NewReader
Fixes #222
2018-01-06 16:37:13 +11:00
Matt Joiner
cecc70f4cc More megacheck 2017-11-08 00:12:34 +11: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
625cca3b6f fs: Move fileNode stuff into its own file 2017-08-26 13:25:04 +10: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
Seth Hoenig
9f4bf70e17 refactor struct identifiers to follow conventional go names 2016-04-18 23:11:11 -05: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
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
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 5cf75b869c469196a8473c4962b99a450daaeeec, reversing
changes made to 09050ff2c5607f3991e6ec6422ed57ba0dee0bad.
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
e735aeeee3 fs: Update for changes in bazil.org/fuse 2015-08-23 19:25:33 +10:00
Matt Joiner
3ef59be02d fs: Remove errant logging 2015-07-22 19:07:01 +10:00
Matt Joiner
c76f3c1ead Upstream bazil.org/fuse changed again ಠ_ಠ 2015-06-22 23:02:29 +10:00
Matt Joiner
9a0f830395 Upstream bazil.org/fuse changes again... 2015-06-02 23:59:25 +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
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
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
22746dda23 Ditch the intermediate MetaInfo type 2015-02-26 22:17:58 +11:00
Matt Joiner
c3a592ac39 Updates due to changes to bazil.org/fuse 2015-02-06 16:03:33 +11:00
Matt Joiner
7b80153387 fs: Improve tests 2014-12-03 12:53:10 -06:00
Matt Joiner
91c2c1f5c7 Piece priorities, torrent read interface and many fixes 2014-12-03 01:07:50 -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
e4a0493bd0 No longer require FUSE to run fs test 2014-11-20 12:50:53 -06:00
Matt Joiner
06e240e198 Expose a wrapped metainfo type with helper methods 2014-11-18 14:36:27 -06: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