All Projects → cifsd-team → ksmbd

cifsd-team / ksmbd

Licence: other
ksmbd kernel server(SMB/CIFS server)

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to ksmbd

ksmbd
ksmbd kernel server(SMB/CIFS server)
Stars: ✭ 181 (+84.69%)
Mutual labels:  filesystem, smb, cifs, file-server, rdma, network-file-system, in-kernel, smb3
fs.smbfs
Pyfilesystem2 over SMB using pysmb
Stars: ✭ 21 (-78.57%)
Mutual labels:  filesystem, smb, cifs
kbdysch
A collection of user-space Linux kernel specific guided fuzzers based on LKL
Stars: ✭ 62 (-36.73%)
Mutual labels:  filesystem, linux-kernel
scst
No description or website provided.
Stars: ✭ 61 (-37.76%)
Mutual labels:  linux-kernel, rdma
smbj-rpc
Created by Paul Miseiko via the GitHub Connector
Stars: ✭ 31 (-68.37%)
Mutual labels:  smb, cifs
Simplefs
A simple file system for Linux kernel
Stars: ✭ 65 (-33.67%)
Mutual labels:  filesystem, linux-kernel
sgfs
🚀Simple http file server. A open source file server, implement by golang that can be used to upload and download files. Simple to deploy, simple to use. 中文介绍:
Stars: ✭ 51 (-47.96%)
Mutual labels:  filesystem, file-server
pmOCR
A wrapper for tesseract / abbyyOCR11 ocr4linux finereader cli that can perform batch operations or monitor a directory and launch an OCR conversion on file activity
Stars: ✭ 53 (-45.92%)
Mutual labels:  smb, cifs
cockpit-samba-manager
A Cockpit plugin to manage Samba shares and users.
Stars: ✭ 28 (-71.43%)
Mutual labels:  smb, cifs
Sphinx-Dipper
Sphinx Custom Kernel for Mi 8 (Dipper)
Stars: ✭ 17 (-82.65%)
Mutual labels:  linux-kernel
rcore-fs
The file system module for rCore OS.
Stars: ✭ 38 (-61.22%)
Mutual labels:  filesystem
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (+121.43%)
Mutual labels:  filesystem
files
Useful methods to manage files and directories
Stars: ✭ 27 (-72.45%)
Mutual labels:  filesystem
gof
Yet another simple Go filesystem wrapper
Stars: ✭ 13 (-86.73%)
Mutual labels:  filesystem
Level-Headed
Random Level Generator for Super Mario Bros. 1 on the NES
Stars: ✭ 100 (+2.04%)
Mutual labels:  smb
SuperShaper-SOHO
Packet filtering / QoS setup for typical home/small office
Stars: ✭ 14 (-85.71%)
Mutual labels:  linux-kernel
OpenHarmony
华为鸿蒙分布式操作系统(Huawei OpenHarmony)开发技术交流,鸿蒙技术资料,手册,指南,共建国产操作系统万物互联新生态。
Stars: ✭ 373 (+280.61%)
Mutual labels:  linux-kernel
GAN-Project-2018
GAN in Tensorflow to be run via Linux command line
Stars: ✭ 21 (-78.57%)
Mutual labels:  linux-kernel
execmon
Advanced process execution monitoring utility for linux (procmon like)
Stars: ✭ 77 (-21.43%)
Mutual labels:  linux-kernel
korefile
File System API for Local/GitHub.
Stars: ✭ 29 (-70.41%)
Mutual labels:  filesystem

Content

What is KSMBD?

KSMBD is an opensource In-kernel CIFS/SMB3 server created by Namjae Jeon for Linux Kernel. It's an implementation of SMB/CIFS protocol in kernel space for sharing files and IPC services over network. Initially the target is to provide improved file I/O performances, but the bigger goal is to have some new features which are much easier to develop and maintain inside the kernel and expose the layers fully. Directions can be attributed to sections where SAMBA is moving to few modules inside the kernel to have features like RDMA(Remote direct memory access) to work with actual performance gain.

Under PFIF

This code was developed in participation with the Protocol Freedom Information Foundation.

Please see

Git

The development git tree is available at

Maintainers

Bug reports or contribution

For reporting bugs and sending patches, please send the patches to the following mail address:

or open issues/send PRs to KSMBD.

linux-cifsd-devel mailing list subscription

For subscribing to maling list, Insert your mail and info after accessing the following address:

Installing as a stand-alone module

Install prerequisite package for Fedora, RHEL:

	yum install kernel-devel-$(uname -r)

Build step:

	make
	sudo make install

To load the driver manually, run this as root:

	modprobe ksmbd

Installing as a part of the kernel

  1. Let's take [linux] as the path to your kernel source dir.
	cd [linux]
	cp -ar ksmbd [linux]/fs/
  1. edit [linux]/fs/Kconfig
	source "fs/cifs/Kconfig"
	+source "fs/ksmbd/Kconfig"
	source "fs/coda/Kconfig"
  1. edit [linux]/fs/Makefile
	obj-$(CONFIG_CIFS)              += cifs/
	+obj-$(CONFIG_SMB_SERVER)       += ksmbd/
	obj-$(CONFIG_HPFS_FS)           += hpfs/
  1. make menuconfig and set ksmbd
	[*] Network File Systems  --->
		<M>   SMB server support

build your kernel

Features

Implemented

  1. SMB1(CIFS), SMB2/3 protocols for basic file sharing
  2. Dynamic crediting
  3. Compound requests
  4. oplock/lease
  5. Large MTU
  6. NTLM/NTLMv2
  7. Auto negotiation
  8. HMAC-SHA256 Signing
  9. Secure negotiate
  10. Signing Update
  11. Pre-authentication integrity(SMB 3.1.1)
  12. SMB3 encryption(CCM, GCM)
  13. SMB direct(RDMA)
  14. Win-ACL
  15. Kerberos
  16. Multi-channel

Planned

  1. Durable handle v1/v2
  2. Persistent handles
  3. Directory lease

Supported Linux Kernel Versions

  • Linux Kernel 5.4 or later

KSMBD architecture

               |--- ...
       --------|--- ksmbd/3 - Client 3
       |-------|--- ksmbd/2 - Client 2
       |       |         _____________________________________________________
       |       |        |- Client 1                                           |
<--- Socket ---|--- ksmbd/1   <<= Authentication : NTLM/NTLM2, Kerberos(TODO)|
       |       |      | |      <<= SMB : SMB1, SMB2, SMB2.1, SMB3, SMB3.0.2,  |
       |       |      | |                SMB3.1.1                             |
       |       |      | |_____________________________________________________|
       |       |      |
       |       |      |--- VFS --- Local Filesystem
       |       |
KERNEL |--- ksmbd/0(forker kthread)
---------------||---------------------------------------------------------------
USER           ||
               || communication using NETLINK
               ||  ______________________________________________
               || |                                              |
        ksmbd.mountd <<= DCE/RPC, WINREG                         |
               ^  |  <<= configure shares setting, user accounts |
               |  |______________________________________________|
               |
               |------ smb.conf(config file)
               |
               |------ ksmbdpwd.db(user account/password file)
                            ^
  ksmbd.adduser ---------------|

Performance

  1. ksmbd vs samba performance comparison using iozone (Linux Client)

  2. ksmbd vs samba performance comparison using fileop (Linux Client)

  3. ksmbd vs samba performance comparison using CrystalDiskMark (Windows Client)

    CrystalDiskMark

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].