-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add total disk space to free-space RPC request #1682
Add total disk space to free-space RPC request #1682
Conversation
This pull request introduces 1 alert when merging d34ec4a into faafc9e - view on LGTM.com new alerts:
|
Should solve error: `error C2526: 'tr_getDirFreeSpace': C linkage function cannot return C++ class 'tr_disk_space'` https://trtc.mikedld.com/viewLog.html?tab=buildLog&logTab=tree&filter=debug&expand=all&buildId=106738&_focus=2612
This reverts commit 9ebfcff.
This reverts commit 640bb6e.
So I have been trying a bunch of things but fail to get a passing windows build. Problem is the following: I have no idea what's going on here. @ckerr do you have any idea how to resolve this? Feel free to change the PR to what's needed or let me know how to resolve it. As I mentioned before this is one of the first times looking at C so this is not clear to me at all. |
Hmm I see I left this PR in limbo. Sorry about that @johman10. Is this feature something your'e still interested in, and would you be willing to update the PR to sync with all the recent changes in |
@ckerr I'm still interested in this and wouldn't mind updating this PR. I can have a look at it soon-ish. Can't promise any timeframe right now but I will aim to find some time this week. :) |
ftbfs on lgtm:
|
@ckerr I updated the branch and it seems like the builds will pass now, as you predicted. Please give it another review when you have time! :) |
fix: unused variable warning in free-space code
Hi! I'm the creator of Flood for Transmission and I was working on a little detail panel that shows the available space. In that panel I was hoping to show user configured paths and how much space is available with a progress bar kind of representation.
However as of today Transmission doesn't let me know how much space is available in total. For this purpose I made this PR. It basically also returns the amount of bytes that the disk has in total (along side the untouched free space).
To do this I had to dig through some layers all the way to the deepest native call and pass it back up, which I used a struct for. Please review carefully as this is my first ever work in any form of C so I may have done somethings a bit different than conventional. But if so, please do let me know and I can look at it, or feel free to update the PR yourself if you feel like it.
I tested this on Linux (via Windows subsystem) with a Postman request see below:
I don't know how else to test this so let me know if something is off.