diff options
author | 2018-06-28 22:53:39 -0500 | |
---|---|---|
committer | 2018-08-07 14:15:56 -0500 | |
commit | c3ed44026cd07fda5976ecb79225759901a160b4 (patch) | |
tree | 8a0d034a0cfb86ed54b7ec9d8baa796ae7e0ab0d /fs/cifs | |
parent | smb3: simplify code by removing CONFIG_CIFS_SMB311 (diff) | |
download | linux-c3ed44026cd07fda5976ecb79225759901a160b4.tar.gz linux-c3ed44026cd07fda5976ecb79225759901a160b4.tar.bz2 linux-c3ed44026cd07fda5976ecb79225759901a160b4.zip |
smb3: remove noisy warning message on mount
Some servers, like Samba, don't support the fsctl for
query_network_interface_info so don't log a noisy warning
message on mount for this by default unless the error is more serious.
Lower the error to an FYI level so it does not get logged by
default.
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/smb2ops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 27b69977809d..4ce72055ca0a 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -444,7 +444,11 @@ SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon) FSCTL_QUERY_NETWORK_INTERFACE_INFO, true /* is_fsctl */, NULL /* no data input */, 0 /* no data input */, (char **)&out_buf, &ret_data_len); - if (rc != 0) { + if (rc == -EOPNOTSUPP) { + cifs_dbg(FYI, + "server does not support query network interfaces\n"); + goto out; + } else if (rc != 0) { cifs_dbg(VFS, "error %d on ioctl to get interface list\n", rc); goto out; } |