Global config option: max_capacity

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 policy mfs (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

The problem is that with this method you would have to query size of all stored objects (one by one) - it could be prohibitively slow.

I agree. In that case this option should come with that warning. When they fully understand what is implied, they should grab some more coffe for the wait :smile:

It has to be run for every such union member every cache_time (default 120s).

Simply when remote backend does not support providing used/free space stats then there is no good workaround in this situation.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.