| /linux/Documentation/filesystems/smb/ |
| H A D | smbdirect.rst | 4 SMB Direct - SMB3 over RDMA 7 This document describes how to set up the Linux SMB client and server to 12 The Linux SMB kernel client supports SMB Direct, which is a transport 16 SMB Direct on the Linux SMB client can be tested against KSMBD - a 17 kernel-space SMB server. 25 - Install a kernel with SMB Direct support. The first kernel release to 26 support SMB Direct on both the client and server side is 5.15. Therefore, 29 - Install cifs-utils, which provides the `mount.cifs` command to mount SMB 54 - Enable SMB Direct support for both the server and the client in the kernel 63 [*] Support for SMB Direct protocol [all …]
|
| H A D | cifsroot.rst | 4 Mounting root file system via SMB (cifs.ko) 12 support over the SMB protocol via cifs.ko. 16 network by utilizing SMB or CIFS protocol. 39 settings in Samba smb.conf:: 53 the root file system via SMB protocol. 59 Enables the kernel to mount the root file system via SMB that are 62 The default mount options are set in fs/smb/client/cifsroot.c. 68 Path to SMB share (rootfs). 76 Export root file system as a Samba share in smb.conf file:: 93 Restart smb service:: [all …]
|
| H A D | ksmbd.rst | 27 for listening to SMB requests. Whenever new clients make a request, the Forker 30 processing of SMB requests(commands) from clients as well as allowing for new 32 to indicate connected clients. Depending on the SMB request types, each new 41 ownership of receiving/parsing of SMB commands. Each received command is worked 45 So, each SMB workitem is queued to the kworkers. This allows the benefit of load 54 allows sharing information parameters that are parsed from smb.conf to ksmbd in 84 SMB direct(RDMA) Supported. 134 2. Create /usr/local/etc/ksmbd/ksmbd.conf file, add SMB share in ksmbd.conf file. 141 3. Create user/password for SMB share. 146 $ sudo ksmbd.adduser -a <Enter USERNAME for SMB share access> [all …]
|
| /linux/fs/smb/server/ |
| H A D | smb_common.c | 37 "\2SMB 2.1", 43 "\2SMB 2.???", 52 "\2SMB 2.1", 58 "\2SMB 3.0", 64 "\2SMB 3.02", 70 "\2SMB 3.1.1", 108 ksmbd_debug(SMB, "selected %s dialect idx = %d\n", in ksmbd_lookup_protocol_idx() 118 ksmbd_debug(SMB, "selected %s dialect idx = %d\n", in ksmbd_lookup_protocol_idx() 129 * @work: smb work 131 * check for valid smb signature and packet direction(request/response) [all …]
|
| H A D | smb2misc.c | 17 * Make sure that this really is an SMB, that it is a response. in check_smb2_hdr() 26 * in order by SMB2 command. This is similar to "wct" in SMB/CIFS requests. 187 ksmbd_debug(SMB, "no length check for command\n"); in smb2_get_data_area_len() 192 ksmbd_debug(SMB, "offset %d too large\n", *off); in smb2_get_data_area_len() 195 ksmbd_debug(SMB, "Request is larger than maximum stream protocol length(%u): %llu\n", in smb2_get_data_area_len() 204 * Calculate the size of the SMB message based on the fixed header 211 unsigned int offset; /* the offset from the beginning of SMB to data area */ in smb2_calc_size() 238 ksmbd_debug(SMB, "SMB2 data length %u offset %u\n", data_length, in smb2_calc_size() 249 ksmbd_debug(SMB, in smb2_calc_size() 259 ksmbd_debug(SMB, "SMB2 len %u\n", *len); in smb2_calc_size() [all …]
|
| H A D | smb2pdu.c | 58 * check_session_id() - check for valid session id in smb header 60 * @id: session id from smb header 87 * @work: smb work 101 ksmbd_debug(SMB, "skip to check tree connect request\n"); in smb2_get_ksmbd_tcon() 106 ksmbd_debug(SMB, "NO tree connected\n"); in smb2_get_ksmbd_tcon() 139 * smb2_set_err_rsp() - set error response code on smb response 140 * @work: smb work containing response buffer 169 * @work: smb work containing smb header 193 * @work: smb work containing smb response buffer 213 * get_smb2_cmd_val() - get smb command code from smb header [all …]
|
| H A D | Kconfig | 51 bool "Support for SMB Direct protocol" 57 Enables SMB Direct support for SMB 3.0, 3.02 and 3.1.1. 59 SMB Direct allows transferring SMB packets over RDMA. If unsure,
|
| H A D | ksmbd_work.h | 34 /* Pointer to received SMB header */ 66 /* response smb header size */ 96 * @work: smb work containing response buffer 105 * @work: smb work containing response buffer 114 * @work: smb work containing response buffer
|
| H A D | vfs.c | 167 * ksmbd_vfs_create() - vfs helper for smb create file 205 * ksmbd_vfs_mkdir() - vfs helper for smb create directory 312 * check_lock_range() - vfs helper for smb byte range file locking 356 * ksmbd_vfs_read() - vfs helper for smb file read 357 * @work: smb work 400 pr_err("smb read failed, err = %zd\n", nbytes); in ksmbd_vfs_read() 475 * ksmbd_vfs_write() - vfs helper for smb file write 529 ksmbd_debug(VFS, "smb write failed, err = %d\n", err); in ksmbd_vfs_write() 548 * ksmbd_vfs_getattr() - vfs helper for smb getattr 565 * ksmbd_vfs_fsync() - vfs helper for smb fsync [all …]
|
| H A D | server.c | 88 * @work: smb work containing server thread information 134 ksmbd_debug(SMB, "*** not implemented yet cmd = %x\n", command); in __process_request() 257 * handle_ksmbd_work() - process pending smb work requests 258 * @wk: smb work containing request command buffer 260 * called by kworker threads to processing remaining smb work requests 277 * queue_ksmbd_work() - queue a smb request to worker thread queue 278 * for processing smb command and sending response 465 static const char * const debug_type_strings[] = {"smb", "auth", "vfs", 622 MODULE_DESCRIPTION("Linux kernel CIFS/SMB SERVER");
|
| /linux/Documentation/i2c/busses/ |
| H A D | i2c-ali15x3.rst | 42 This is the driver for the SMB Host controller on Acer Labs Inc. (ALI) 89 then you must enable ACPI, the PMU, SMB, or something similar 94 The SMB controller is part of the M7101 device, which is an ACPI-compliant 97 The whole M7101 device has to be enabled for the SMB to work. You can't 98 just enable the SMB alone. The SMB and the ACPI have separate I/O spaces. 99 We make sure that the SMB is enabled. We leave the ACPI alone. 104 This driver controls the SMB Host only. The SMB Slave 112 This driver requests the I/O space for only the SMB
|
| H A D | i2c-ali1535.rst | 21 This is the driver for the SMB Host controller on Acer Labs Inc. (ALI) 33 The SMB controller is part of the M7101 device, which is an ACPI-compliant 36 The whole M7101 device has to be enabled for the SMB to work. You can't 37 just enable the SMB alone. The SMB and the ACPI have separate I/O spaces. 38 We make sure that the SMB is enabled. We leave the ACPI alone. 44 This driver controls the SMB Host only. This driver does not use
|
| /linux/fs/smb/client/ |
| H A D | Kconfig | 29 protocol, Server Message Block (SMB ie SMB1), the native file sharing 60 Enabling this option will allow more detailed statistics on SMB 100 namespace prefix to SMB/CIFS EAs. EAs are stored on Windows 183 bool "SMB Direct support" 186 Enables SMB Direct support for SMB 3.0, 3.02 and 3.1.1. 187 SMB Direct allows transferring SMB packets over RDMA. If unsure, 199 bool "SMB root file system (Experimental)" 202 Enables root file system support over SMB protocol. 207 bool "SMB message compression (Experimental)" 211 Enables over-the-wire message compression for SMB 3.1.1 [all …]
|
| H A D | cifssmb.c | 7 * Contains the routines for constructing the SMB PDUs themselves 11 /* SMB/CIFS PDU handling routines here - except for leftovers in connect.c */ 69 /* reconnect the socket, tcon, and smb session if needed */ 79 * tcp and smb session status done differently for those three - in the in cifs_reconnect_tcon() 139 * reconnect the same SMB session in cifs_reconnect_tcon() 222 /* Allocate and return pointer to an SMB request buffer, and set basic 223 SMB information in the SMB header. If the return code is zero, this 287 /* potential retries of smb operations it turns out we can determine */ in __smb_init() 339 /* check for parm and data offset going beyond end of smb */ in validate_t2() 349 * less than negotiated smb buffer in validate_t2() [all …]
|
| H A D | misc.c | 31 in a similar way to the mid which is useful to track each sent smb, 318 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr() argument 320 /* does it have the right SMB "signature" ? */ in check_smb_hdr() 321 if (*(__le32 *) smb->Protocol != cpu_to_le32(0x424d53ff)) { in check_smb_hdr() 323 *(unsigned int *)smb->Protocol); in check_smb_hdr() 328 if (smb->Flags & SMBFLG_RESPONSE) in check_smb_hdr() 332 if (smb->Command == SMB_COM_LOCKING_ANDX) in check_smb_hdr() 340 if (smb->Command == SMB_COM_TRANSACTION2 && smb->Status.CifsError != 0) in check_smb_hdr() 344 get_mid(smb)); in check_smb_hdr() 351 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB() local [all …]
|
| H A D | netmisc.c | 811 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() local 813 int rc = -EIO; /* if transport error smb error may not be set */ in map_smb_to_linux_error() 819 /* old style smb error codes */ in map_smb_to_linux_error() 820 if (smb->Status.CifsError == 0) in map_smb_to_linux_error() 823 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error() 824 /* translate the newer STATUS codes to old style SMB errors in map_smb_to_linux_error() 826 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error() 833 smberrclass = smb->Status.DosError.ErrorClass; in map_smb_to_linux_error() 834 smberrcode = le16_to_cpu(smb->Status.DosError.Error); in map_smb_to_linux_error() 839 /* DOS class smb error codes - map DOS */ in map_smb_to_linux_error() [all …]
|
| H A D | cifspdu.h | 20 /* SMB command codes: 22 * (ie which include no useful data other than the SMB error code itself). 66 /* SMB Transact (Named Pipe) subcommand codes */ 102 * Starting value for maximum SMB size negotiation 112 * Size of the crypto key returned on the negotiate SMB in bytes 137 * Flags on SMB open 154 * SMB flag definitions 156 #define SMBFLG_EXTD_LOCK 0x01 /* server supports lock-read write-unlock smb */ 167 * SMB flag2 definitions 202 /* (for non-local files over SMB it */ [all …]
|
| H A D | cifstransport.c | 103 /* check if SMB session is bad because we are setting it up */ in allocate_mid() 151 * Send an SMB Request. No response info (other than return code) 199 cifs_server_dbg(VFS, "SMB signature verification returned error = %d\n", in cifs_check_receive() 283 cifs_dbg(VFS, "Null smb session\n"); in SendReceive() 315 of smb data */ in SendReceive() 424 cifs_dbg(VFS, "Null smb session\n"); in SendReceiveBlockingLock() 458 of smb data */ in SendReceiveBlockingLock() 506 /* POSIX lock. We send a NT_CANCEL SMB to cause the in SendReceiveBlockingLock()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-coresight-devices-ultra_smb | 5 Description: (RW) Add/remove a SMB device from a trace path. There can be 6 multiple sources for a single SMB device. 12 Description: (RO) Shows the buffer size of each UltraSoc SMB device. 18 Description: (RO) Shows the value of UltraSoc SMB status register. 25 Description: (RO) Shows the value of UltraSoc SMB Read Pointer register. 31 Description: (RO) Shows the value of UltraSoc SMB Write Pointer register.
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-ali1535.c | 11 This is the driver for the SMB Host controller on 25 The SMB controller is part of the 7101 device, which is an 28 The whole 7101 device has to be enabled for the SMB to work. 29 You can't just enable the SMB alone. 30 The SMB and the ACPI have separate I/O spaces. 31 We make sure that the SMB is enabled. We leave the ACPI alone. 33 This driver controls the SMB Host only. 118 #define ALI1535_SMBIO_EN 0x04 /* SMB I/O Space enable */ 134 - SMB I/O address is initialized in ali1535_setup() 177 dev_err(&dev->dev, "SMB device not enabled - upgrade BIOS?\n"); in ali1535_setup() [all …]
|
| H A D | i2c-ali15x3.c | 10 This is the driver for the SMB Host controller on 33 The SMB controller is part of the 7101 device, which is an 36 The whole 7101 device has to be enabled for the SMB to work. 37 You can't just enable the SMB alone. 38 The SMB and the ACPI have separate I/O spaces. 39 We make sure that the SMB is enabled. We leave the ACPI alone. 41 This driver controls the SMB Host only. 42 The SMB Target controller on the M15X3 is not enabled. 127 - SMB I/O address is initialized in ali15x3_setup() 192 /* Is SMB Host controller enabled? */ in ali15x3_setup() [all …]
|
| /linux/drivers/net/ethernet/atheros/atlx/ |
| H A D | atl1.c | 1091 /* init SMB */ in atl1_setup_ring_resources() 1092 adapter->smb.dma = adapter->cmb.dma + sizeof(struct coals_msg_block); in atl1_setup_ring_resources() 1093 offset = (adapter->smb.dma & 0x7) ? (8 - (adapter->smb.dma & 0x7)) : 0; in atl1_setup_ring_resources() 1094 adapter->smb.dma += offset; in atl1_setup_ring_resources() 1095 adapter->smb.smb = (struct stats_msg_block *) in atl1_setup_ring_resources() 1237 adapter->smb.dma = 0; in atl1_free_ring_resources() 1238 adapter->smb.smb = NULL; in atl1_free_ring_resources() 1482 iowrite32((u32) (adapter->smb.dma & 0x00000000ffffffffULL), in atl1_configure() 1596 /* config CMB / SMB */ in atl1_configure() 1606 /* --- enable CMB / SMB */ in atl1_configure() [all …]
|
| /linux/Documentation/admin-guide/cifs/ |
| H A D | authors.rst | 11 Andrew Tridgell (Samba team) for his early suggestions about SMB/CIFS VFS 18 Dave Boutcher of IBM Rochester (author of the OS/400 smb/cifs filesystem client) 19 for proving years ago that very good smb/cifs clients could be done on Unix-like 55 - Long Li (some great work on RDMA, SMB Direct)
|
| H A D | usage.rst | 11 supersedes the 1992 X/Open SMB Standard) as well as to perform best practice 48 the modules directory e.g. /lib/modules/6.3.0-060300-generic/kernel/fs/smb/client/cifs.ko). 71 on kernel/fs/smb/client/cifs.ko the list of configuration changes that can be made 152 to your smb.conf file on the server. Note that the following smb.conf settings 174 Some administrators may want to change Samba's smb.conf ``map archive`` and 182 (``man smb.conf``) on the Samba server system. Note that the cifs vfs, 183 unlike the smbfs vfs, does not read the smb.conf on the client system 270 illegal Windows/NTFS/SMB characters to a remap range (this mount parameter 273 When POSIX Extensions for SMB 3.1.1 are negotiated, remapping is automatically 293 Set the SMB/CIFS workgroup name prepended to the [all …]
|
| /linux/fs/smb/ |
| H A D | Kconfig | 5 source "fs/smb/client/Kconfig" 6 source "fs/smb/server/Kconfig"
|