patch-2.3.31 linux/include/linux/ncp_fs_sb.h

Next file: linux/include/linux/nfs.h
Previous file: linux/include/linux/ncp_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.30/linux/include/linux/ncp_fs_sb.h linux/include/linux/ncp_fs_sb.h
@@ -52,23 +52,23 @@
 
 	int root_setuped;
 
-/* info for packet signing */
-	int sign_wanted;        /* 1=Server needs signed packets */
-	int sign_active;        /* 0=don't do signing, 1=do */
+	/* info for packet signing */
+	int sign_wanted;	/* 1=Server needs signed packets */
+	int sign_active;	/* 0=don't do signing, 1=do */
 	char sign_root[8];	/* generated from password and encr. key */
 	char sign_last[16];	
 
 	/* Authentication info: NDS or BINDERY, username */
 	struct {
-		int    auth_type;
-		size_t object_name_len;
-		void*  object_name;
-		int    object_type;
+		int	auth_type;
+		size_t	object_name_len;
+		void*	object_name;
+		int	object_type;
 	} auth;
 	/* Password info */
 	struct {
-		size_t len;
-		void*  data;
+		size_t	len;
+		void*	data;
 	} priv;
 
 	/* nls info: codepage for volume and charset for I/O */
@@ -77,10 +77,18 @@
 
 	/* maximum age in jiffies */
 	int dentry_ttl;
+
+	/* miscellaneous */
+	unsigned int flags;
 };
 
 #define ncp_sb_info	ncp_server
 
+#define NCP_FLAG_UTF8	1
+
+#define NCP_CLR_FLAG(server, flag)	((server)->flags &= ~(flag))
+#define NCP_SET_FLAG(server, flag)	((server)->flags |= (flag))
+#define NCP_IS_FLAG(server, flag)	((server)->flags & (flag))
 
 static inline int ncp_conn_valid(struct ncp_server *server)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)