-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would be great to get status of what's going on #3
Comments
I have thought about this too. There is no obvious way to output status like that since there is no UI. You can get some status out of it if you run it in foreground with the "-f" flag, but it won't print much. |
|
How about creating a status or log file in the root of the mounted directory? I have no experience with FUSE (yet) but I'd be glad to look into this. |
Simplest first step: logging to stderr when |
@JDevlieghere the problem with having a reserved file for that purpose is that you have to account for filename clashes: what do you do when there's also a file with that name in the BT package? I like the ioctl idea though. It should be a simple case of adding:
and
and then adding new options in |
@1ace is right about the name clashing problem. Another way is to have a log file in the generated target directory (see the populate_target function.) It's not very convenient for a user since the path to that directory is random and non-obvious, but very easy to implement. It would mean save_path is changed to /home/X/btfs/btfs-XXXXXX/files (instead of /home/X/btfs/btfs-XXXXXX as of today) and log is written to /home/X/btfs/btfs-XXXXXX/status.log. |
I actually started working on an |
@1ace did you ever get anywhere with this? |
Ok I finally discovered btfsstat is supposed to do this. |
@deliciouslytyped I guess not 😅 but also I have no memory of any of this, and I don't have a clone of this repo anymore, so I think whatever I did was lost a long time ago 🤷 |
right now, mounting sample.torrent and then "cat sample.txt" just sits there w/o status of any kind, e.g. finding peers, downloading, etc.
The text was updated successfully, but these errors were encountered: