aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2011-12-27 07:04:00 -0500
committerPavel Shilovsky <pshilovsky@samba.org>2012-07-24 13:54:58 -0400
commitfaaf946a7d5b79194358437150f34ab4c66bfe21 (patch)
tree1bf4b4cab6abc39443a63e90cac771f9aaad0f52 /fs/cifs/cifsglob.h
parent5478f9ba9a34d660eb3227dcd16314689c51f946 (diff)
CIFS: Add tree connect/disconnect capability for SMB2
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 0d78bc410cb3..ef4e0a0bc826 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -528,7 +528,7 @@ struct cifs_tcon {
528 char treeName[MAX_TREE_SIZE + 1]; /* UNC name of resource in ASCII */ 528 char treeName[MAX_TREE_SIZE + 1]; /* UNC name of resource in ASCII */
529 char *nativeFileSystem; 529 char *nativeFileSystem;
530 char *password; /* for share-level security */ 530 char *password; /* for share-level security */
531 __u16 tid; /* The 2 byte tree id */ 531 __u32 tid; /* The 4 byte tree id */
532 __u16 Flags; /* optional support bits */ 532 __u16 Flags; /* optional support bits */
533 enum statusEnum tidStatus; 533 enum statusEnum tidStatus;
534#ifdef CONFIG_CIFS_STATS 534#ifdef CONFIG_CIFS_STATS
@@ -584,6 +584,15 @@ struct cifs_tcon {
584 bool local_lease:1; /* check leases (only) on local system not remote */ 584 bool local_lease:1; /* check leases (only) on local system not remote */
585 bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */ 585 bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */
586 bool need_reconnect:1; /* connection reset, tid now invalid */ 586 bool need_reconnect:1; /* connection reset, tid now invalid */
587#ifdef CONFIG_CIFS_SMB2
588 bool print:1; /* set if connection to printer share */
589 bool bad_network_name:1; /* set if ret status STATUS_BAD_NETWORK_NAME */
590 __u32 capabilities;
591 __u32 share_flags;
592 __u32 maximal_access;
593 __u32 vol_serial_number;
594 __le64 vol_create_time;
595#endif /* CONFIG_CIFS_SMB2 */
587#ifdef CONFIG_CIFS_FSCACHE 596#ifdef CONFIG_CIFS_FSCACHE
588 u64 resource_id; /* server resource id */ 597 u64 resource_id; /* server resource id */
589 struct fscache_cookie *fscache; /* cookie for share */ 598 struct fscache_cookie *fscache; /* cookie for share */