[Samba] Async Query Directory (for VFS)

Dan Greenfield dan at cuno.io
Tue May 28 08:06:47 UTC 2024


Hi, is there a branch, patch or other attempts I can look at for async processing of SMB2 QUERY_DIRECTORY? Looking online I see proposals from years ago for making everything async but I don't know what happened to it? 

In my use case, I don't care as much about impersonation and security as it's being used for client only loopback on Mac, process running as the logged in user. I have a custom VFS that accesses remote object storage but Spotlight (mds) on MacOS trawls recursively in background resulting in lots of slow directory queries which are being processed synchronously, despite handing preads and pwrites asynchronously. It makes for a not great user experience when the MacOS rainbow beachball shows up and otherwise smooth reads are interrupted.

Any pointers appreciated to figure this out.

Kind regards, 
   Dan


More information about the samba mailing list