Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
Samsung Posts Newest "KSMBD" Linux Patches For In-Kernel SMB3 Server
Out now is the fifth round of these patches for KSMBD (previously as "CIFSD" within the kernel) for implementing an in-kernel SMB3 server. The focus remains on being able to deliver optimal performance and supporting more features like RDMA integration compared to what can be implemented efficiently in user-space with the likes of Samba.
This newest KSMBD code has a variety of fixes and a lot of code clean-ups along with the CIFSD to KSMBD renaming changes. There is also user name-space support now as one of the new features.
As for the KSMBD motivation and how it will co-exist with Samba:
ksmbd is a new kernel module which implements the server-side of the SMB3 protocol. The target is to provide optimized performance, GPLv2 SMB server, better lease handling (distributed caching). The bigger goal is to add new features more rapidly (e.g. RDMA aka "smbdirect", and recent encryption and signing improvements to the protocol) which are easier to develop on a smaller, more tightly optimized kernel server than for example in Samba. The Samba project is much broader in scope (tools, security services, LDAP, Active Directory Domain Controller, and a cross platform file server for a wider variety of purposes) but the user space file server portion of Samba has proved hard to optimize for some Linux workloads, including for smaller devices. This is not meant to replace Samba, but rather be an extension to allow better optimizing for Linux, and will continue to integrate well with Samba user space tools and libraries where appropriate. Working with the Samba team we have already made sure that the configuration files and xattrs are in a compatible format between the kernel and user space server.
More details on the current state of this SMB3 kernel server can be found via this patch series. In its current form the KSMBD implementation is 32k lines of new kernel code.