CIFS: make 'nodfs' mount opt a superblock flag
authorAurelien Aptel <aaptel@suse.com>
Fri, 21 Sep 2018 01:10:25 +0000 (18:10 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:16:05 +0000 (21:16 -0500)
commit8393072bab060f0a05888ee31543175d44b5dde0
treecfc22288674c170a1699b78fa752baaa82071aa4
parent9e1a37dad4f3b9f1d36d9fd27021bbd67fb8c85f
CIFS: make 'nodfs' mount opt a superblock flag

tcon->Flags is only used by SMB1 code and changing it is not permanent
(you lose the setting on tcon reconnect).

* Move the setting to superblock flags (per mount-points).
* Make automount callback exit early when flag present
* Make dfs resolving happening in mount syscall exit early if flag present

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifs_dfs_ref.c
fs/cifs/cifs_fs_sb.h
fs/cifs/cifsfs.c
fs/cifs/connect.c