]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
SMB3: avoid confusing warning message on mount to Azure
authorSteve French <stfrench@microsoft.com>
Wed, 9 Dec 2020 03:13:31 +0000 (21:13 -0600)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:26:28 +0000 (14:26 +0100)
commit305a69715ef24f5552eec1c0965366203b15d05f
tree8a124f837d32a0e0b6fff3176fbf4310854a4ce7
parent63537a1471eb013e5be616ca1105123191aef479
SMB3: avoid confusing warning message on mount to Azure

BugLink: https://bugs.launchpad.net/bugs/1910822
commit ebcd6de98754d9b6a5f89d7835864b1c365d432f upstream.

Mounts to Azure cause an unneeded warning message in dmesg
   "CIFS: VFS: parse_server_interfaces: incomplete interface info"

Azure rounds up the size (by 8 additional bytes, to a
16 byte boundary) of the structure returned on the query
of the server interfaces at mount time.  This is permissible
even though different than other servers so do not log a warning
if query network interfaces response is only rounded up by 8
bytes or fewer.

CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/cifs/smb2ops.c