From 54b23456ed33a3efb1ef1ae73f361cc8d3c108a8 Mon Sep 17 00:00:00 2001 From: acid angel from asia Date: Wed, 1 Jan 2025 15:30:35 -0500 Subject: [PATCH] disable fs caching explicitly on macos --- rose-vfs/rose_vfs/virtualfs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rose-vfs/rose_vfs/virtualfs.py b/rose-vfs/rose_vfs/virtualfs.py index bdee17b..871155b 100644 --- a/rose-vfs/rose_vfs/virtualfs.py +++ b/rose-vfs/rose_vfs/virtualfs.py @@ -46,6 +46,7 @@ import re import stat import subprocess +import sys import tempfile import time from collections.abc import Iterator @@ -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)