Kaspian
(Kaspian)
May 4, 2022, 8:31am
1
What is the problem you are having with rclone?
I'm trying to mount a drive, however size is shown as 1PB. I would like to define it myself as a fallback (for example 25GB). Not sure if it's possible or not rn so flagging it as Help and Support.
Run the command 'rclone version' and share the full output of the command.
rclone v1.59.0-beta.6114.a44610604
os/version: Microsoft Windows 10 Home 20H2 (64 bit)
os/kernel: 10.0.19042.1319 (x86_64)
os/type: windows
os/arch: amd64
go/version: go1.18.1
go/linking: static
go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Storj in that case
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone mount Storj: S:
The rclone config contents with secrets removed.
[Storj]
type = storj
access_grant = REDACTED
ncw
(Nick Craig-Wood)
May 4, 2022, 10:20am
2
There isn't a flag for mount to set the maximum size of a mount.
There is an issue about this though
opened 11:00PM - 22 Feb 20 UTC
enhancement
VFS / mount
help wanted
#### What is your current rclone version (output from `rclone version`)?
```
…
rclone v1.51.0
- os/arch: linux/amd64
- go version: go1.13.7
```
#### What problem are you are trying to solve?
Cloud providers bill based on usage, and crossing a usage threshold can provoke an automatic switch to the upper (and costlier) offer.
#### How do you think rclone should be changed to solve that?
I’ve searched the issues for my problem, and my issue is exactly #1956. It is closed, though.
I totally agree with the NO-FIX resolution, since the cloud providers just don’t provide the necessary data.
However, apparently Rclone now has the feature, at least for those providers that do provide the information: I did some tests, and both FREE and TOTAL spaces are correctly reported for:
* Google Drive
* Koofr
* MS OneDrive
Strangely, even though both FREE and TOTAL are correctly reported with the `about` command, I get wrong results with the `mount` command for:
* Mega: I get a TOTAL of 148G instead of 50G, and 13G FREE insead of 4G;
* Yandex: while the TOTAL is correct (10G), the FREE space is reported as 1P.
So, what I suggest is adding the possibility to configure an optional per-remote TOTAL that would be used for that remote in place of whatever is reported by the remote.
If the TOTAL is such configured for a remote, then the FREE space would be the simple calculation `TOTAL−USED=FREE`.
It wouldn't be very hard if someone wants to have a go to add a new vfs flag --vfs-total-size
say.
system
(system)
Closed
June 3, 2022, 10:20am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.