Jancis
(Jānis Bebrītis)
August 23, 2023, 10:59am
1
Is there a way to find out if rclone mount
process has any pending upload/download operations?
I need to stop rclone mount process, but sometimes there' s a bigger file upload in progress that leaves file stuck in cache folder. I'd want to find a way to query such pending operations either via FS or RPC before killing the mount pid, is it possible? I checked documentation and various topics, but this is not mentioned anywhere.
Thank You in advance!
Jancis
(Jānis Bebrītis)
August 23, 2023, 11:35am
2
Update: I think this is exactly what I asked and it's available via RPC vfs/stats
call
opened 07:37PM - 15 Nov 21 UTC
closed 06:00PM - 23 Nov 21 UTC
enhancement
VFS / mount
stats
<!--
Welcome :-)
So you've got an idea to improve rclone? We love that!
Y… ou'll be glad to hear we've incorporated hundreds of ideas from contributors already.
Probably the latest beta (or stable) release has your feature, so try to update your rclone.
The update instructions are available at https://rclone.org/commands/rclone_selfupdate/
If it still isn't there, here is a checklist of things to do:
1. Search the old issues for your idea and +1 or comment on an existing issue if possible.
2. Discuss on the forum: https://forum.rclone.org/
3. Make a feature request issue (this is the right place!).
4. Be prepared to get involved making the feature :-)
Looking forward to your great idea!
The Rclone Developers
-->
#### The associated forum post URL from `https://forum.rclone.org`
https://forum.rclone.org/t/how-to-check-mount-upload-progress-from-scripts/27396
#### What is your current rclone version (output from `rclone version`)?
rclone v1.57.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-90-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
#### What problem are you are trying to solve?
I would like to query the VFS cache stats of rclone mount from scripts using rclone's remote control (rc) API. At the moment I have to parse rclone's output or logfile and examine the corresponding INFO messages such as `vfs cache: cleaned: objects 2 (was 2) in use 2, to upload 0, uploading 2, total size 76.831Mi (was 76.831Mi)`
#### How do you think rclone should be changed to solve that?
It would be awesome to query these statistics via remote control, such as (arbitrary example, could also look a little bit different):
```
rclone rc vfscache/stats
{
"objects": 10,
"inUse": 5,
"toUpload": 3,
"uploading": 2,
"totalSize": 131072
}
```
#### How to use GitHub
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue.
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
* Subscribe to receive notifications on status change and new comments.
system
(system)
Closed
September 22, 2023, 11:35am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.