smbctune.conf 文件
用途
包含与 "服务器消息块" (SMB) 客户机文件系统相关联的可调参数设置。
描述
/etc/smbc/smbctune.conf 文件包含 smbctune 命令使用的可调参数及其相应值。 smbcd 守护程序使可调参数更改持久。
此文件包含与 smbctune 命令指定的参数相同的可调参数。 缺省情况下, /etc/smbc/smbctune.conf 文件的格式如下所示:
default:
smbc_lookup_cache_size=32
smbc_max_concurrent_mount=8
smbc_max_connections=0
smbc_request_timeout=0
smbc_krb5_lifetime=0
smbc_krb5_renew_till=0
smbc_oplock_enable=1
smbc_file_lease_enable=1
smbc_protocol_version=auto
smbc_signing=enabled
smbc_secure_negotiate=desired
smbc_encryption=desired必须使用 default 关键字来指示相同的可调参数适用于连接到 SMB 服务器的每个 SMB 客户机系统。示例
- 要将最大并发安装操作数设置为 1024 ,将 SMB 客户机系统上的最大可用连接数设置为 4096 ,并将请求超时持续时间设置为 20 秒,请在 smbctune.conf 文件中输入以下文本:
default: smbc_request_timeout=20 smbc_max_concurrent_mount=1024 smbc_max_connections=4096