4 * Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
5 * Copyright (C) 1997 by Volker Lendecke
12 #include <linux/types.h>
17 SMB_PROTOCOL_COREPLUS
,
41 enum smb_protocol protocol
;
42 enum smb_case_hndl case_handling
;
44 /* Connection-Options */
50 /* The following are LANMAN 1.0 options */
57 /* The following are NT LM 0.12 options */
65 #define SMB_MAXNAMELEN 255
66 #define SMB_MAXPATHLEN 1024
69 * Contains all relevant data on a SMB networked file.
85 unsigned long f_blksize
;
86 unsigned long f_blocks
;
90 struct smb_fattr attr
;
94 __u8 name
[SMB_MAXNAMELEN
];
98 CONN_VALID
, /* everything's fine */
99 CONN_INVALID
, /* Something went wrong, but did not
100 try to reconnect yet. */
101 CONN_RETRIED
/* Tried a reconnection, but was refused */
105 * The readdir cache size controls how many directory entries are cached.
107 #define SMB_READDIR_CACHE_SIZE 64
109 #define SMB_SUPER_MAGIC 0x517B
111 #define SMB_SERVER(inode) (&(inode->i_sb->u.smbfs_sb))
112 #define SMB_INOP(inode) (&(inode->u.smbfs_i))
114 #define SMB_HEADER_LEN 37 /* includes everything up to, but not
115 * including smb_bcc */
116 #define SMB_DEF_MAX_XMIT 32768
117 #define SMB_INITIAL_PACKET_SIZE 4000
119 /* Allocate max. 1 page */
120 #define TRANS2_MAX_TRANSFER (4096-17)