cifs: move cache mount options to fs_context.ch
[linux-2.6-microblaze.git] / fs / cifs / fs_context.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *   Copyright (C) 2020, Microsoft Corporation.
4  *
5  *   Author(s): Steve French <stfrench@microsoft.com>
6  *              David Howells <dhowells@redhat.com>
7  */
8
9 #ifndef _FS_CONTEXT_H
10 #define _FS_CONTEXT_H
11
12 #include <linux/parser.h>
13 #include "cifsglob.h"
14
15 enum {
16         Opt_cache_loose,
17         Opt_cache_strict,
18         Opt_cache_none,
19         Opt_cache_ro,
20         Opt_cache_rw,
21         Opt_cache_err
22 };
23
24 int cifs_parse_cache_flavor(char *value, struct smb_vol *vol);
25
26 enum cifs_sec_param {
27         Opt_sec_krb5,
28         Opt_sec_krb5i,
29         Opt_sec_krb5p,
30         Opt_sec_ntlmsspi,
31         Opt_sec_ntlmssp,
32         Opt_ntlm,
33         Opt_sec_ntlmi,
34         Opt_sec_ntlmv2,
35         Opt_sec_ntlmv2i,
36         Opt_sec_lanman,
37         Opt_sec_none,
38
39         Opt_sec_err
40 };
41
42 int cifs_parse_security_flavors(char *value, struct smb_vol *vol);
43
44 #endif