TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

BTFS – mount any .torrent file or magnet link as directory

510 pointsby cab404almost 5 years ago

20 comments

saurikalmost 5 years ago
This is effectively what IPFS is, but IPFS takes it to the next level by using the equivalent of torrent files for subdirectories within the mounted torrent files, so you can &quot;traverse&quot; entire networks of the pretty-much-a-torrent files without first having to download and mount them. And like, you could implement similar functionality here by having torrent files that contain files named .torrent have those files be treated as directories, but at that point IPFS is going to be much more feature complete; even like, if you have some giant file, on IPFS that might be represented by trees of hashes as opposed to merely a giant array of hashes so you can incrementally and efficiently access the parts you need. So like, while this is awesome work, if you find it <i>inspiring</i>, maybe channel that inspiration into learning about IPFS and extending that ecosystem, rather than doubling down on trying to build on torrent files.
评论 #23583869 未加载
评论 #23582045 未加载
评论 #23582606 未加载
评论 #23582284 未加载
评论 #23582590 未加载
manjalycalmost 5 years ago
The source code is far smaller that I would&#x27;ve expected, tiny in fact - no seriously, its probably &lt;2000 lines of actual code and looks extremely simple to audit and fix bugs. It seems the only real external dependency is libtorrent.<p>Honestly, if your not already amazed if not at the simplicity of this project, than you should be by the simplicity of fuse filesystems and the capabilities it exposes.
评论 #23579137 未加载
评论 #23578060 未加载
评论 #23582149 未加载
toomuchtodoalmost 5 years ago
This is cool. I can mount most of the Internet Archive as a directory with this. Would love this to grow into what your consumer cloud storage services are but for torrents (a global file system you can mount locally, using torrent data as inodes, with visual representations for availability status similar to the Dropbox green check boxes). Perhaps even with support for web seeding from a storage system of last resort (Backblaze, S3, etc).
评论 #23579285 未加载
Randoralmost 5 years ago
Well,<p>I wrote a device driver for Windows 8 that would mount a .torrent file as a virtual disk way back in 2011. We pitched the intellectual property around to several large companies. The only interest we had in the technology was video game companies... where we could mark file pieces as &#x27;high priority&#x27; and allow the player to play the game even when the game disk was partially downloaded.<p>The IP was sold to a company developing their next-generation console video game system as part of a 24 million dollar package and never saw the light of day. I suspect what they really wanted was the associated patents.
gruezalmost 5 years ago
I wonder how intelligently this handles piece download order. Torrent clients usually use rarest-first download algorithm, but if you&#x27;ve mounted a movie and you&#x27;re playing it with VLC, you&#x27;d probably want it to download sequentially so there&#x27;s as little time spent buffering as possible. You could download the pieces on demand (whatever piece the application is trying to read), but I suspect that will provide a suboptimal experience, especially if your download speed is barely above the bitrate of the movie.
评论 #23579205 未加载
评论 #23580765 未加载
评论 #23579165 未加载
评论 #23579106 未加载
fuzzybear3965almost 5 years ago
Can someone explain why I might use this instead of downloading a select group of files using a torrent file&#x2F;magnet link? Is the advantage that it selectively downloads files on an as-needed basis? Or, is the product niche somehow related to the fact that the torrent file&#x2F;magnet link is mounted as a filesystem, instead of only as a collection of files and folders?
评论 #23584392 未加载
jtl999almost 5 years ago
Okay. I&#x27;m afraid to ask. What happens in the case of a) a torrent with no seeders or b) Has seeders with enough data to get a directory listing but either the seeders &quot;drop off&quot; afterwards or are incomplete<p>Other experiences with network filesystems (CIFS&#x2F;NFS) on multiple platforms sometimes have things getting hairy if the connection to the server drops while the filesystem is mounted or in use
评论 #23581808 未加载
评论 #23582152 未加载
yunrusealmost 5 years ago
This is a brilliant concept of a tool. I’ve never worked with monorepos before, but something like this with rw capacity would be an absolutely amazing pipeline, if every developer in the office and beyond are full nodes in the system.
评论 #23579310 未加载
评论 #23578978 未加载
anacrolixalmost 5 years ago
See <a href="https:&#x2F;&#x2F;github.com&#x2F;anacrolix&#x2F;torrent&#x2F;tree&#x2F;master&#x2F;fs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;anacrolix&#x2F;torrent&#x2F;tree&#x2F;master&#x2F;fs</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;anacrolix&#x2F;torrent&#x2F;blob&#x2F;master&#x2F;cmd&#x2F;torrentfs&#x2F;main.go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;anacrolix&#x2F;torrent&#x2F;blob&#x2F;master&#x2F;cmd&#x2F;torrent...</a> for a Go FUSE implementation of this. (Looks like it was started in early 2014.)
shricalmost 5 years ago
Neat idea, but it seems like abuse of the torrent protocol. If peers don&#x27;t grab chunks randomly then it partially defeats the purpose of bittorrent.
评论 #23579114 未加载
评论 #23578888 未加载
eqtnalmost 5 years ago
BTFS with mutable torrents would make a nice piracy suite
评论 #23578253 未加载
评论 #23579055 未加载
评论 #23577501 未加载
评论 #23579931 未加载
inyorgroovealmost 5 years ago
Tools[1] like this have existed for at least 6 years. Don&#x27;t know if the older tools still work though.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;mafintosh&#x2F;torrent-mount" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mafintosh&#x2F;torrent-mount</a>
ngcc_hkalmost 5 years ago
If you make your own torrent files, how to prevent it accidentally share with the world? Is there anything in the torrent files that can prevent this? (Program and configuration can make mistake.)
评论 #23580776 未加载
torrmentoralmost 5 years ago
Why not torrentfs? What are the needs for obfuscation or association with btrfs (&#x27;better try remaking fs&#x27;? )
评论 #23578894 未加载
grawprogalmost 5 years ago
This looks pretty awesome. Does it work with private trackers?
评论 #23577742 未加载
评论 #23578236 未加载
Giorgialmost 5 years ago
Cool but can&#x27;t really see any practical use of this...
diericxalmost 5 years ago
This is freaking awesome!!
waynesonfirealmost 5 years ago
Wow, what a great concept.
6510almost 5 years ago
Great stuff, thanks!
yjftsjthsd-halmost 5 years ago
Well that is neat, albeit an unfortunate name (1-char off from BTRFS). Wonder what performance is like - does it try to preemptively download? Cache? I would expect it to take a while to run `cp ~&#x2F;mnt_btfs&#x2F;big_file ~&#x2F;Downloads&#x2F;`, but how about `find ~&#x2F;mnt_btfs`? If it&#x27;s performant, it could be really nifty:)
评论 #23579499 未加载
评论 #23580628 未加载
评论 #23577411 未加载