请输入您要查询的百科知识:

 

词条 CIFSD
释义

  1. Features

      Implemented    Planned  

  2. Architecture

      kcifsd (kernel daemon)    cifsd (user space daemon)  

  3. See also

  4. References

  5. External links

{{primary sources|date=February 2017}}{{Infobox software
| name = CIFSD
| author = Namjae Jeon
| developer = Namjae Jeon, Sergey Senozhatsky
| genre = Network Filesystem
| programming language = C
| operating system = Linux
| license = GPLv2
}}

CIFSD is an open-source in-kernel CIFS/SMB server created by Namjae Jeon for the Linux kernel. Initially the goal is to provide improved file I/O performance, 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 Remote direct memory access (RDMA) to work with actual performance gain.

Features

{{Prose|section|date=October 2016}}

Implemented

  • SMB1(CIFS), SMB2/3 protocols for basic file sharing
  • Dynamic crediting
  • Compound requests
  • Durable handle
  • oplock/lease
  • Large MTU
  • NTLM/NTLMv2
  • Auto negotiation
  • HMAC-SHA256 Signing
  • Secure negotiate
  • Signing Update
  • Pre-authentication integrity(SMB 3.1.1, Windows 10)
  • SMB encryption

Planned

  • SMB direct(RDMA)
  • Multi-channel
  • Durable handle v2
  • Kerberos
  • Persistent handles
  • Directory lease
  • Cluster Support
  • SCSI over SMB3

Architecture

The subset of performance related operations belong in kernelspace and the other subset which belong to operations which are not really related with performance in userspace. So, DCE/RPC management that has historically resulted into number of buffer overflow issues and dangerous security bugs and winreg and user account management are implemented in user space as cifsd. File operations that are related with performance (open/read/write/close etc.) in kernel space (kcifsd). This also allows for easier integration with VFS interface for all file operations.

kcifsd (kernel daemon)

When the server daemon is started, It starts up a forker thread (kcifsd/0) at initialization time and open a dedicated port 445 for listening to SMB requests. Whenever new clients make request, forker thread will accept the client connection and fork a new thread for dedicated communication channel between the client and the server. It allows for parallel processing of SMB requests (commands) from clients as well as allowing for new clients to make new connections. Each instance is named kcifsd/1~n to indicate connected clients. Depending on the SMB request types, each new thread can decide to pass through the commands to the user space (cifsd), currently DCE/RPC commands are identified to be handled through the user space.

To further utilize the linux kernel, it has been chosen to process the commands as default workitems and to be executed in the handlers of the default kworker threads. It allows for multiplexing of the handlers as the kernel take care of initiating extra worker threads if the load is increased and vice versa, if the load is decreased it destroys the extra worker threads. So, after connection is established with client. Dedicated kcifsd/1..n takes complete ownership of receiving/parsing of SMB commands. Each command received is worked in parallel i.e., there can be multiple clients commands which are worked in parallel. After receiving each command a separated kernel workitem is prepared for each command which is further queued to be handled by default kworker'threads inside the kernel. So, each SMB workitem is queued to the kworkers. This allows the benefit of load sharing to be managed optimally by the default kernel and optimizing client performance by handling client commands in parallel.

cifsd (user space daemon)

cifsd is userspace process to, transfer user account and password that are registered using cifsadmin (part of utils for user space). Further it allows sharing information parameters that parsed from smb.conf to smb export layer in kernel. For the execution part it has a daemon which is continuously running and connected to the kernel interface using netlink socket, it waits for the requests (dcerpc and winreg). It handles RPC calls (at a minimum few dozen) that are most important for file server from NetShareEnum and NetServerGetInfo and various DFS related calls which a server must implement. Complete DCE/RPC response is prepared from the user space and passed over to the associated kernel thread for the client.

See also

  • Comparison of operating system kernels
  • Server Message Block
  • List of products that support SMB

References

  • https://github.com/namjaejeon/cifsd/blob/master/README
  • User Manual : https://github.com/namjaejeon/Documents/blob/master/CIFSD_User_Guide_v1.0.pdf

External links

  • {{GitHub|cifsd-team/cifsd}}
  • {{GitHub|cifsd-team/cifsd-tools}}

2 : File systems supported by the Linux kernel|Network file systems

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 10:27:24