Hello. When vfs cache mode is set to minimal, will it still store only the parts that are read from a file? For example, on a 10GB file I read the first 1GB and then read last 1GB. Would this work without downloading the entire file? This will answer whether you can seek with minimal and only download the parts that are requested.
I know the documentation is well put together but for the minimal mode it doesn't seem to be.
The documentation says:
--vfs-cache-mode off -- * Files opened for write can't be seeked
--vfs-cache-mode minimal -- does not explicitly state that files can or can't be seeked, only talks about things in relation to writing.
--vfs-cache-mode full -- explicitly says "In this mode the files in the cache will be sparse files and rclone will keep track of which bits of the files it has downloaded."
felix@gemini:~/test$ ls -alR ~/.cache/rclone/
/home/felix/.cache/rclone/:
total 16
drwxr-xr-x 4 felix felix 4096 Jun 29 19:41 .
drwx------ 5 felix felix 4096 Feb 7 14:31 ..
drwx------ 3 felix felix 4096 Jun 29 19:41 vfs
drwx------ 3 felix felix 4096 Jun 29 19:41 vfsMeta
/home/felix/.cache/rclone/vfs:
total 12
drwx------ 3 felix felix 4096 Jun 29 19:41 .
drwxr-xr-x 4 felix felix 4096 Jun 29 19:41 ..
drwx------ 2 felix felix 4096 Jun 29 19:41 GD{TKSWb}
/home/felix/.cache/rclone/vfs/GD{TKSWb}:
total 8
drwx------ 2 felix felix 4096 Jun 29 19:41 .
drwx------ 3 felix felix 4096 Jun 29 19:41 ..
/home/felix/.cache/rclone/vfsMeta:
total 12
drwx------ 3 felix felix 4096 Jun 29 19:41 .
drwxr-xr-x 4 felix felix 4096 Jun 29 19:41 ..
drwx------ 2 felix felix 4096 Jun 29 19:41 GD{TKSWb}
/home/felix/.cache/rclone/vfsMeta/GD{TKSWb}:
total 8
drwx------ 2 felix felix 4096 Jun 29 19:41 .
drwx------ 3 felix felix 4096 Jun 29 19:41 ..
but if I use full and head the same file:
felix@gemini:~/test$ ls -alR ~/.cache/rclone/
/home/felix/.cache/rclone/:
total 16
drwxr-xr-x 4 felix felix 4096 Jun 29 19:41 .
drwx------ 5 felix felix 4096 Feb 7 14:31 ..
drwx------ 3 felix felix 4096 Jun 29 19:41 vfs
drwx------ 3 felix felix 4096 Jun 29 19:41 vfsMeta
/home/felix/.cache/rclone/vfs:
total 12
drwx------ 3 felix felix 4096 Jun 29 19:41 .
drwxr-xr-x 4 felix felix 4096 Jun 29 19:41 ..
drwx------ 2 felix felix 4096 Jun 29 19:44 GD{TKSWb}
/home/felix/.cache/rclone/vfs/GD{TKSWb}:
total 132
drwx------ 2 felix felix 4096 Jun 29 19:44 .
drwx------ 3 felix felix 4096 Jun 29 19:41 ..
-rw------- 1 felix felix 1504953150 Dec 21 2016 jellyfish-400-mbps-4k-uhd-hevc-10bit.mkv
/home/felix/.cache/rclone/vfsMeta:
total 12
drwx------ 3 felix felix 4096 Jun 29 19:41 .
drwxr-xr-x 4 felix felix 4096 Jun 29 19:41 ..
drwx------ 2 felix felix 4096 Jun 29 19:44 GD{TKSWb}
/home/felix/.cache/rclone/vfsMeta/GD{TKSWb}:
total 12
drwx------ 2 felix felix 4096 Jun 29 19:44 .
drwx------ 3 felix felix 4096 Jun 29 19:41 ..
-rw-rw-r-- 1 felix felix 286 Jun 29 19:44 jellyfish-400-mbps-4k-uhd-hevc-10bit.mkv
You can see it's a sparse file as it only grabbed a little bit of it:
felix@gemini:~/.cache/rclone/vfs/GD{TKSWb}$ du -sh *
124K jellyfish-400-mbps-4k-uhd-hevc-10bit.mkv
felix@gemini:~/.cache/rclone/vfs/GD{TKSWb}$ du -sh * --apparent-size
1.5G jellyfish-400-mbps-4k-uhd-hevc-10bit.mkv
felix@gemini:~/.cache/rclone/vfs/GD{TKSWb}$