0001
0002
0003
0004
0005
0006
0007
0008 #include <linux/rbtree.h>
0009
0010 #ifndef _CIFS_FS_SB_H
0011 #define _CIFS_FS_SB_H
0012
0013 #include <linux/backing-dev.h>
0014
0015 #define CIFS_MOUNT_NO_PERM 1
0016 #define CIFS_MOUNT_SET_UID 2
0017 #define CIFS_MOUNT_SERVER_INUM 4
0018 #define CIFS_MOUNT_DIRECT_IO 8
0019 #define CIFS_MOUNT_NO_XATTR 0x10
0020 #define CIFS_MOUNT_MAP_SPECIAL_CHR 0x20
0021 #define CIFS_MOUNT_POSIX_PATHS 0x40
0022 #define CIFS_MOUNT_UNX_EMUL 0x80
0023 #define CIFS_MOUNT_NO_BRL 0x100
0024 #define CIFS_MOUNT_CIFS_ACL 0x200
0025 #define CIFS_MOUNT_OVERR_UID 0x400
0026 #define CIFS_MOUNT_OVERR_GID 0x800
0027 #define CIFS_MOUNT_DYNPERM 0x1000
0028 #define CIFS_MOUNT_NOPOSIXBRL 0x2000
0029 #define CIFS_MOUNT_NOSSYNC 0x4000
0030 #define CIFS_MOUNT_FSCACHE 0x8000
0031 #define CIFS_MOUNT_MF_SYMLINKS 0x10000
0032 #define CIFS_MOUNT_MULTIUSER 0x20000
0033 #define CIFS_MOUNT_STRICT_IO 0x40000
0034 #define CIFS_MOUNT_RWPIDFORWARD 0x80000
0035 #define CIFS_MOUNT_POSIXACL 0x100000
0036 #define CIFS_MOUNT_CIFS_BACKUPUID 0x200000
0037 #define CIFS_MOUNT_CIFS_BACKUPGID 0x400000
0038 #define CIFS_MOUNT_MAP_SFM_CHR 0x800000
0039 #define CIFS_MOUNT_USE_PREFIX_PATH 0x1000000
0040
0041
0042 #define CIFS_MOUNT_UID_FROM_ACL 0x2000000
0043 #define CIFS_MOUNT_NO_HANDLE_CACHE 0x4000000
0044 #define CIFS_MOUNT_NO_DFS 0x8000000
0045 #define CIFS_MOUNT_MODE_FROM_SID 0x10000000
0046 #define CIFS_MOUNT_RO_CACHE 0x20000000
0047 #define CIFS_MOUNT_RW_CACHE 0x40000000
0048 #define CIFS_MOUNT_SHUTDOWN 0x80000000
0049
0050 struct cifs_sb_info {
0051 struct rb_root tlink_tree;
0052 spinlock_t tlink_tree_lock;
0053 struct tcon_link *master_tlink;
0054 struct nls_table *local_nls;
0055 struct smb3_fs_context *ctx;
0056 atomic_t active;
0057 unsigned int mnt_cifs_flags;
0058 struct delayed_work prune_tlinks;
0059 struct rcu_head rcu;
0060
0061
0062 char *prepath;
0063
0064
0065 uuid_t dfs_mount_id;
0066
0067
0068
0069
0070 bool mnt_cifs_serverino_autodisabled;
0071
0072
0073
0074 struct dentry *root;
0075 };
0076 #endif