Skip to content

Commit

Permalink
remote: add vfs-cache-min-free-space
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Sep 12, 2023
1 parent 05f37e9 commit 8ee2a78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/remote/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
rclone_config_path: "/home/{{ user.name }}/.config/rclone/rclone.conf"
rclone_vfs_cache_dir: ""
rclone_vfs_cache_dir_lookup: "{{ lookup('vars', 'rclone_remote_' + item.remote + '_vfs_cache_dir', default=rclone_vfs_cache_dir) }}"
rclone_vfs_cache_min_free_space: "off"
rclone_service_template: "saltbox_managed_rclone_"

rclone_port_lookup: "{{ port_lookup_rclone.meta.port
Expand Down
1 change: 1 addition & 0 deletions roles/remote/templates/dropbox.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ExecStart=/usr/bin/rclone mount \
--use-mmap \
--user-agent='{{ user_agent }}' \
{% if item.vfs_cache.enabled %}
--vfs-cache-min-free-space={{ rclone_vfs_cache_min_free_space }} \
--vfs-cache-max-age={{ item.vfs_cache.max_age | default('504h') }} \
--vfs-cache-max-size={{ item.vfs_cache.size | default('50G') }} \
--vfs-cache-mode=full \
Expand Down
1 change: 1 addition & 0 deletions roles/remote/templates/google.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ExecStart=/usr/bin/rclone mount \
--use-mmap \
--user-agent='{{ user_agent }}' \
{% if item.vfs_cache.enabled %}
--vfs-cache-min-free-space={{ rclone_vfs_cache_min_free_space }} \
--vfs-cache-max-age={{ item.vfs_cache.max_age | default('504h') }} \
--vfs-cache-max-size={{ item.vfs_cache.size | default('50G') }} \
--vfs-cache-mode=full \
Expand Down
1 change: 1 addition & 0 deletions roles/remote/templates/sftp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ExecStart=/usr/bin/rclone mount \
--umask=002 \
--user-agent='{{ user_agent }}' \
{% if item.vfs_cache.enabled %}
--vfs-cache-min-free-space={{ rclone_vfs_cache_min_free_space }} \
--vfs-cache-max-age={{ item.vfs_cache.max_age | default('504h') }} \
--vfs-cache-max-size={{ item.vfs_cache.size | default('50G') }} \
--vfs-cache-mode=full \
Expand Down

0 comments on commit 8ee2a78

Please sign in to comment.