smb3: log warning if CSC policy conflicts with cache mount option
authorSteve French <stfrench@microsoft.com>
Tue, 3 Sep 2019 22:49:46 +0000 (17:49 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:38 +0000 (11:43 -0500)
commitcae53f70f812c845fcedb577b0d40ec97ee4b920
tree8ac4254f88973b488fdc6067275113d37c39c5f2
parent41e033fecdc891da629113c4f8ee80500b7656d6
smb3: log warning if CSC policy conflicts with cache mount option

If the server config (e.g. Samba smb.conf "csc policy = disable)
for the share indicates that the share should not be cached, log
a warning message if forced client side caching ("cache=ro" or
"cache=singleclient") is requested on mount.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/connect.c