forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/fs/cifs/cifs_fs_sb.h
....@@ -51,12 +51,17 @@
5151 */
5252 #define CIFS_MOUNT_UID_FROM_ACL 0x2000000 /* try to get UID via special SID */
5353 #define CIFS_MOUNT_NO_HANDLE_CACHE 0x4000000 /* disable caching dir handles */
54
+#define CIFS_MOUNT_NO_DFS 0x8000000 /* disable DFS resolving */
55
+#define CIFS_MOUNT_MODE_FROM_SID 0x10000000 /* retrieve mode from special ACE */
56
+#define CIFS_MOUNT_RO_CACHE 0x20000000 /* assumes share will not change */
57
+#define CIFS_MOUNT_RW_CACHE 0x40000000 /* assumes only client accessing */
5458
5559 struct cifs_sb_info {
5660 struct rb_root tlink_tree;
5761 spinlock_t tlink_tree_lock;
5862 struct tcon_link *master_tlink;
5963 struct nls_table *local_nls;
64
+ unsigned int bsize;
6065 unsigned int rsize;
6166 unsigned int wsize;
6267 unsigned long actimeo; /* attribute cache timeout (jiffies) */
....@@ -71,7 +76,16 @@
7176 char *mountdata; /* options received at mount time or via DFS refs */
7277 struct delayed_work prune_tlinks;
7378 struct rcu_head rcu;
79
+
80
+ /* only used when CIFS_MOUNT_USE_PREFIX_PATH is set */
7481 char *prepath;
82
+
83
+ /*
84
+ * Path initially provided by the mount call. We might connect
85
+ * to something different via DFS but we want to keep it to do
86
+ * failover properly.
87
+ */
88
+ char *origin_fullpath; /* \\HOST\SHARE\[OPTIONAL PATH] */
7589 /*
7690 * Indicate whether serverino option was turned off later
7791 * (cifs_autodisable_serverino) in order to match new mounts.