-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAPL extensions/context #502
Comments
Thanks for suggestion:) |
Hi Namjae, Hope you're well. Not found a solid spec but been working off the following: As well as the vfs_fruit module from Samba, specifically:
Converted to ksmbd context, this then shows the share as type: SMB (OSX) in macOS and tries to use their readdirattr extension (i.e stuffing a whole folder into another structure inside the response). This stops macOS from reading the listing then statting each file for attributes and, testing with Apple's SMB server: Traversing folder structure of 400 folder and 18000 files: I should have a working PR for this soon if you're interested. (different issue, I'm currently working from Commit 888b780 rather than master, as master causing a hang and 100% cpu load of ksmbd-io on kernel 6.13, unsure if that's something specific to my config) Thanks! |
Okay, I am very interested in this! Please send a PR to us:)
Sound great:) Let me know if you have question while checking this issue. |
is that what the last commit on master is supposed to fix ("ksmbd: fix infinite loop when client send search pattern") ? AAPL create context is also required for Time Machine backups on SMB shares. However, there are a few more things (durable handles v2 for example). I found this page which may be of interest: |
Right. I think so. He should check it with the latest master version.
Thanks for sharing it. |
Hi Both, Working from latest version now. Work got a bit busy so still working on this, AAPL context is done as is AAPL Readdirattr (which stuffs unix perms and finderinfo into reserved field and easize). I think Time Machine requires the full sync flag to be considered for use, haven't yet looked at that in the samba vfs_fruit code. Should have a PR soon for the context and basic ops. Best P.s thanks for the extra Time machine info! |
@tucari Sound great and thanks for your work. |
Hi!
Thanks so much for ksmbd!
I wonder if there is any interest or ongoing work in implementing AAPL SMB2 extensions (as seen in vfs_fruit for Samba)?
Main reason (in my case) would be for the bulk readdirattr calls which -hugely- improve directory traversal speed on macOS.
I've managed to get the context handling and capability advertising working in ksmbd but not yet the readdirattr call.
Thanks
Jon
The text was updated successfully, but these errors were encountered: