]> git.proxmox.com Git - pve-storage.git/commit
cifs: negotiates the highest SMB2+ version supported by default
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 Sep 2021 14:23:23 +0000 (16:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 Sep 2021 08:59:00 +0000 (10:59 +0200)
commite1667a225310d96ae9ce813d53ec9b04eebe77e6
tree72c25c4246fa6ce1cc2b065f784bc7e4ed8bc426
parent9fff8c7aca43d2c416ef78c5a9ce9ec4b6b07ecd
cifs: negotiates the highest SMB2+ version supported by default

instead of hardcoding it to a potential outdated value.

For `smbclient` we only set max-protocol version and that could only
be smb2 or smb3 (no finer granularity) any how, so this was not
really correct.

Nowadays the kernel dropped SMB1 and tries to go for SMB2.1 or higher
by default, depending on what client and server supports. SMB2.1 is
Windows 7/2008R2 - both EOL since quite a bit, so ok as default lower
boundary.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/CIFSPlugin.pm