Hi,
How about implementing global config option for every remote and let's call it max_capacity
? I believe this option can be a workaround for supporting remote without rclone about
capability, but user need to use policy mfs
(most free space) on it as a member of an rclone union
remote.
So today I was looking for some more free storage for my stuff and stumble upon uloz.to, which offer 50GB free storage.
I then proceed to check if rclone support this provider. The good news for me is that the backend is being worked on and the manual for it is already up here. The bad news is it's still in beta as of now, and even though the page says it is for v1.66 and my current rclone version is also v1.66, it's not there yet for me.
I read on the page and at the bottom part of it there is this paragraph that catch my attention:
rclone about
is not supported by the Uloz.to backend. Although there's an endpoint to retrieve the information for the UI, it's not exposed in the API. Backends without this capability cannot determine free space for an rclone mount or use policymfs
(most free space) as a member of an rclone union remote.
Well, how about calculating the free space by taking the maximum capacity of the remote and subtract it by, let's say the total size of all files in it?
Then user will need to be able to put the maximum capacity of the remote in the config file, and the option I would suggest being called max_capacity
.
Please let me know if more information is needed.
Thank you