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

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

diff -u --recursive --new-file v1.3.67/linux/include/linux/ncp_fs_sb.h linux/include/linux/ncp_fs_sb.h
@@ -22,8 +22,8 @@
 				    it completely. */
 
 	struct file *ncp_filp;	/* File pointer to ncp socket */
-
 	struct file *wdog_filp;	/* File pointer to wdog socket */
+	struct file *msg_filp;	/* File pointer to message socket */
 	void *data_ready;	/* The wdog socket gets a new
 				   data_ready callback. We store the
 				   old one for checking purposes and
@@ -35,7 +35,8 @@
 
 	u8         completion;	/* Status message from server */
 	u8         conn_status;	/* Bit 4 = 1 ==> Server going down, no
-				   requests allowed anymore */
+				   requests allowed anymore.
+				   Bit 0 = 1 ==> Server is down. */
 
 	int        buffer_size;	/* Negotiated bufsize */
 
@@ -55,6 +56,18 @@
         struct ncp_inode_info root;
 	char       root_path;	/* '\0' */
 };
+
+static inline int
+ncp_conn_valid(struct ncp_server *server)
+{
+	return ((server->conn_status & 0x11) == 0);
+}
+
+static inline void
+ncp_invalidate_conn(struct ncp_server *server)
+{
+	server->conn_status |= 0x01;
+}
 
 #endif /* __KERNEL__ */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this