Skip to content

Commit

Permalink
disable fs caching explicitly on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Jan 1, 2025
1 parent 325e3c9 commit 54b2345
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rose-vfs/rose_vfs/virtualfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import re
import stat
import subprocess
import sys
import tempfile
import time
from collections.abc import Iterator
Expand Down Expand Up @@ -2005,6 +2006,9 @@ def mount_virtualfs(c: Config, debug: bool = False) -> None:
options.add("fsname=rose")
if debug:
options.add("debug")
if sys.platform == "darwin":
options.add("noappledouble") # Prevent .DS_Store
options.add("nolocalcaches") # Disable caching.
llfuse.init(VirtualFS(c), str(c.vfs.mount_dir), options)
try:
llfuse.main(workers=c.max_proc)
Expand Down

0 comments on commit 54b2345

Please sign in to comment.