From 555782aa556af869d4f390996607abd356513ba4 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 21 Oct 2020 12:10:44 +1000 Subject: cifs: move smb version mount options into fs_context.c This and related patches which move mount related code to fs_context.c has the advantage of shriking the code in fs/cifs/connect.c (which had the second most lines of code of any of the files in cifs.ko and was getting harder to read due to its size) and will also make it easier to switch over to the new mount API in the future. Signed-off-by: Ronnie Sahlberg Reviewed-by: Aurelien Aptel Signed-off-by: Steve French --- fs/cifs/fs_context.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fs/cifs/fs_context.h') diff --git a/fs/cifs/fs_context.h b/fs/cifs/fs_context.h index 3e3f6e29e787..886208a1b0ef 100644 --- a/fs/cifs/fs_context.h +++ b/fs/cifs/fs_context.h @@ -12,6 +12,20 @@ #include #include "cifsglob.h" +enum smb_version { + Smb_1 = 1, + Smb_20, + Smb_21, + Smb_30, + Smb_302, + Smb_311, + Smb_3any, + Smb_default, + Smb_version_err +}; + +int cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3); + enum { Opt_cache_loose, Opt_cache_strict, -- cgit v1.2.3