Home
last modified time | relevance | path

Searched full:smb (Results 1 – 25 of 127) sorted by relevance

123456

/linux/Documentation/filesystems/smb/
H A Dsmbdirect.rst4 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 Dcifsroot.rst4 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 Dksmbd.rst27 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 Dsmb_common.c37 "\2SMB 2.1",
43 "\2SMB 2.???",
52 "\2SMB 2.1",
58 "\2SMB 3.0",
64 "\2SMB 3.02",
70 "\2SMB 3.1.1",
129 ksmbd_debug(SMB, "selected %s dialect idx = %d\n", in ksmbd_lookup_protocol_idx()
139 ksmbd_debug(SMB, "selected %s dialect idx = %d\n", in ksmbd_lookup_protocol_idx()
150 * @work: smb work
152 * check for valid smb signatur
[all...]
H A Dsmb2misc.c16 * Make sure that this really is an SMB, that it is a response. in check_smb2_hdr()
25 * in order by SMB2 command. This is similar to "wct" in SMB/CIFS requests.
186 ksmbd_debug(SMB, "no length check for command\n"); in smb2_get_data_area_len()
191 ksmbd_debug(SMB, "offset %d too large\n", *off); in smb2_get_data_area_len()
194 ksmbd_debug(SMB, "Request is larger than maximum stream protocol length(%u): %llu\n", in smb2_get_data_area_len()
203 * Calculate the size of the SMB message based on the fixed header
210 unsigned int offset; /* the offset from the beginning of SMB to data area */ in smb2_calc_size()
237 ksmbd_debug(SMB, "SMB2 data length %u offset %u\n", data_length, in smb2_calc_size()
248 ksmbd_debug(SMB, in smb2_calc_size()
258 ksmbd_debug(SMB, "SMB2 len %u\n", *len); in smb2_calc_size()
[all …]
H A Dsmb2pdu.c61 * check_session_id() - check for valid session id in smb header
63 * @id: session id from smb header
96 * @work: smb work
110 ksmbd_debug(SMB, "skip to check tree connect request\n"); in smb2_get_ksmbd_tcon()
115 ksmbd_debug(SMB, "NO tree connected\n"); in smb2_get_ksmbd_tcon()
150 * smb2_set_err_rsp() - set error response code on smb response
151 * @work: smb work containing response buffer in smb2_set_err_rsp()
180 * @work: smb work containing smb header
204 * @work: smb wor
[all...]
H A DKconfig49 bool "Support for SMB Direct protocol"
56 Enables SMB Direct support for SMB 3.0, 3.02 and 3.1.1.
58 SMB Direct allows transferring SMB packets over RDMA. If unsure,
H A Dksmbd_work.h34 /* Pointer to received SMB header */
66 /* response smb header size */
100 * @work: smb work containing response buffer in ksmbd_resp_buf_next()
109 * @work: smb work containing response buffer in ksmbd_resp_buf_curr()
118 * @work: smb work containing response buffer in ksmbd_req_buf_next()
H A Dvfs.c138 * ksmbd_vfs_create() - vfs helper for smb create file in ksmbd_vfs_query_maximal_access()
175 * ksmbd_vfs_mkdir() - vfs helper for smb create directory in ksmbd_vfs_create()
285 * check_lock_range() - vfs helper for smb byte range file locking in ksmbd_vfs_stream_read()
332 * ksmbd_vfs_read() - vfs helper for smb file read in check_lock_range()
333 * @work: smb work
376 pr_err("smb read failed, err = %zd\n", nbytes); in ksmbd_vfs_read()
456 * ksmbd_vfs_write() - vfs helper for smb file write
510 ksmbd_debug(VFS, "smb write failed, err = %d\n", err); in ksmbd_vfs_write()
530 * ksmbd_vfs_getattr() - vfs helper for smb getattr
547 * ksmbd_vfs_fsync() - vfs helper for smb fsyn
[all...]
H A Dserver.c90 * @work: smb work containing server thread information
136 ksmbd_debug(SMB, "*** not implemented yet cmd = %x\n", command); in __process_request()
270 * handle_ksmbd_work() - process pending smb work requests in handle_ksmbd_work()
271 * @wk: smb work containing request command buffer in handle_ksmbd_work()
273 * called by kworker threads to processing remaining smb work requests in handle_ksmbd_work()
290 * queue_ksmbd_work() - queue a smb request to worker thread queue in queue_ksmbd_work()
291 * for processing smb command and sending response in queue_ksmbd_work()
479 static const char * const debug_type_strings[] = {"smb", "auth", "vfs", in debug_show()
652 MODULE_DESCRIPTION("Linux kernel CIFS/SMB SERVER");
/linux/fs/smb/client/
H A Dsmb1transport.c86 /* check if SMB session is bad because we are setting it up */ in allocate_mid()
130 * Send an SMB Request. No response info (other than return code)
176 cifs_server_dbg(VFS, "SMB signature verification returned error = %d\n", in cifs_check_receive()
238 cifs_dbg(VFS, "Null smb session\n"); in SendReceive()
291 /* check for parm and data offset going beyond end of smb */ in check2ndT2()
360 /* find end of first SMB data area */ in coalesce_t2()
445 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr() argument
447 /* does it have the right SMB "signature" ? */ in check_smb_hdr()
448 if (*(__le32 *) smb->Protocol != SMB1_PROTO_NUMBER) { in check_smb_hdr()
450 *(unsigned int *)smb->Protocol); in check_smb_hdr()
[all …]
H A Dsmb1encrypt.c20 * Calculate and return the CIFS signature based on the mac key and SMB PDU.
22 * 1st eight bytes and that the smb header signature field on input contains
114 cifs_dbg(FYI, "dummy signature received for smb command 0x%x\n", in cifs_verify_signature()
117 /* save off the original signature so we can modify the smb and check in cifs_verify_signature()
H A Dcifssmb.c7 * Contains the routines for constructing the SMB PDUs themselves
11 /* SMB/CIFS PDU handling routines here - except for leftovers in connect.c */
70 /* reconnect the socket, tcon, and smb session if needed */
80 * tcp and smb session status done differently for those three - in the in cifs_reconnect_tcon()
140 * reconnect the same SMB session in cifs_reconnect_tcon()
223 /* Allocate and return pointer to an SMB request buffer, and set basic
224 SMB information in the SMB header. If the return code is zero, this
291 /* potential retries of smb operations it turns out we can determine */ in __smb_init()
343 /* check for parm and data offset going beyond end of smb */ in validate_t2()
741 ECHO_REQ *smb; CIFSSMBEcho() local
1579 READ_REQ *smb = NULL; cifs_async_readv() local
1888 WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf; cifs_writev_callback() local
[all...]
H A Dsmb2misc.c28 * Make sure that this really is an SMB, that it is a response, in check_smb2_hdr()
50 cifs_dbg(VFS, "Bad SMB detected. The Mid=%llu\n", wire_mid); in check_smb2_hdr()
56 * in order by SMB2 command. This is similar to "wct" in SMB/CIFS responses.
198 * As with SMB/CIFS, on some error cases servers may in smb2_check_message()
203 cifs_dbg(VFS, "Length less than SMB header size\n"); in smb2_check_message()
208 cifs_dbg(VFS, "SMB length greater than maximum, mid=%llu\n", in smb2_check_message()
314 * area and the offset to it (from the beginning of the smb are also returned.
403 /* return pointer to beginning of data area, ie offset from SMB start */ in smb2_get_data_area_len()
410 * Calculate the size of the SMB message based on the fixed header
418 int offset; /* the offset from the beginning of SMB to data area */ in smb2_calc_size()
[all …]
/linux/Documentation/i2c/busses/
H A Di2c-ali15x3.rst42 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 Di2c-ali1535.rst21 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/Documentation/ABI/testing/
H A Dsysfs-bus-coresight-devices-ultra_smb5 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 Di2c-ali1535.c11 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 Di2c-ali15x3.c10 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 Datl1.c1091 /* 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/drivers/hwtracing/coresight/
H A Dultrasoc-smb.c18 #include "ultrasoc-smb.h"
77 /* Reset SMB logical buffer status flags */ in smb_reset_buffer()
130 /* Copy parts of trace data when read pointer wrap around SMB buffer */ in smb_read()
253 /* Do nothing, the SMB is already enabled as other mode */ in smb_enable()
273 dev_dbg(&csdev->dev, "Ultrasoc SMB enabled\n"); in smb_enable()
299 dev_dbg(&csdev->dev, "Ultrasoc SMB disabled\n"); in smb_disable()
391 * The SMB buffer may be bigger than the space available in the in smb_update_buffer()
428 dev_err(&pdev->dev, "SMB device failed to get resource\n"); in smb_init_data_buffer()
572 dev_err(dev, "Failed to register SMB sink\n"); in smb_probe()
598 .name = "ultrasoc-smb",
[all...]
/linux/Documentation/admin-guide/cifs/
H A Dauthors.rst11 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 Dusage.rst11 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/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-tyan-s7106.dts360 * - 0,0: PCIE slot 1, SMB #1
361 * - 0,1: PCIE slot 1, SMB #2
362 * - 1,0: PCIE slot 2, SMB #1
363 * - 1,1: PCIE slot 2, SMB #2
368 * - 0,0: OCP0 (A) SMB
369 * - 0,1: OCP0 (C) SMB
370 * - 1,0: OCP1 (A) SMB
/linux/Documentation/trace/coresight/
H A Dultrasoc-smb.rst12 UltraSoc SMB is a per SCCL (Super CPU Cluster) hardware. It provides a
20 The SMB devices appear on the existing coresight bus alongside other
26 The ``ultra_smb<N>`` names SMB device associated with SCCL.::

123456