SOURCES (LINUX_2_6): linux-2.6-vs2.3.patch - updates for NFS fixes

baggins baggins at pld-linux.org
Mon Aug 13 19:31:05 CEST 2007


Author: baggins                      Date: Mon Aug 13 17:31:05 2007 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- updates for NFS fixes

---- Files affected:
SOURCES:
   linux-2.6-vs2.3.patch (1.2.4.6 -> 1.2.4.7) 

---- Diffs:

================================================================
Index: SOURCES/linux-2.6-vs2.3.patch
diff -u SOURCES/linux-2.6-vs2.3.patch:1.2.4.6 SOURCES/linux-2.6-vs2.3.patch:1.2.4.7
--- SOURCES/linux-2.6-vs2.3.patch:1.2.4.6	Mon Aug 13 17:10:08 2007
+++ SOURCES/linux-2.6-vs2.3.patch	Mon Aug 13 19:31:00 2007
@@ -7557,17 +7557,17 @@
 --- linux-2.6.22.2/fs/nfs/super.c	2007-07-09 13:19:27 +0200
 +++ linux-2.6.22.2-vs2.3.0.17/fs/nfs/super.c	2007-08-05 20:53:13 +0200
 @@ -45,6 +45,7 @@
- #include <linux/inet.h>
  #include <linux/nfs_xdr.h>
  #include <linux/magic.h>
+ #include <linux/parser.h>
 +#include <linux/vs_tag.h>
  
  #include <asm/system.h>
  #include <asm/uaccess.h>
 @@ -291,6 +292,7 @@ static void nfs_show_mount_options(struc
- 		{ NFS_MOUNT_NONLM, ",nolock", "" },
  		{ NFS_MOUNT_NOACL, ",noacl", "" },
  		{ NFS_MOUNT_NORDIRPLUS, ",nordirplus", "" },
+ 		{ NFS_MOUNT_UNSHARED, ",nosharecache", ""},
 +		{ NFS_MOUNT_TAGGED, ",tag", "" },
  		{ 0, NULL, NULL }
  	};
@@ -7694,9 +7694,9 @@
 --- linux-2.6.22.2/fs/nfsd/nfs4xdr.c	2007-07-09 13:19:27 +0200
 +++ linux-2.6.22.2-vs2.3.0.17/fs/nfsd/nfs4xdr.c	2007-08-05 20:53:13 +0200
 @@ -56,6 +56,7 @@
- #include <linux/nfsd_idmap.h>
- #include <linux/nfs4.h>
  #include <linux/nfs4_acl.h>
+ #include <linux/sunrpc/gss_api.h>
+ #include <linux/sunrpc/svcauth_gss.h>
 +#include <linux/vs_tag.h>
  
  #define NFSDDBG_FACILITY		NFSDDBG_XDR
@@ -7833,8 +7833,8 @@
  	 */
  	if (!(acc & MAY_LOCAL_ACCESS))
  		if (acc & (MAY_WRITE | MAY_SATTR | MAY_TRUNC)) {
--			if (EX_RDONLY(exp) || IS_RDONLY(inode))
-+			if (EX_RDONLY(exp) || IS_RDONLY(inode)
+-			if (EX_RDONLY(exp, rqstp) || IS_RDONLY(inode))
++			if (EX_RDONLY(exp, rqstp) || IS_RDONLY(inode)
 +				|| MNT_IS_RDONLY(exp->ex_mnt))
  				return nfserr_rofs;
  			if (/* (acc & MAY_WRITE) && */ IS_IMMUTABLE(inode))
@@ -11349,11 +11349,12 @@
 --- linux-2.6.22.2/include/linux/nfs_mount.h	2007-07-09 13:20:00 +0200
 +++ linux-2.6.22.2-vs2.3.0.17/include/linux/nfs_mount.h	2007-08-05 20:53:13 +0200
 @@ -62,6 +62,7 @@ struct nfs_mount_data {
- #define NFS_MOUNT_STRICTLOCK	0x1000	/* reserved for NFSv4 */
  #define NFS_MOUNT_SECFLAVOUR	0x2000	/* 5 */
  #define NFS_MOUNT_NORDIRPLUS	0x4000	/* 5 */
-+#define NFS_MOUNT_TAGGED	0x8000	/* context tagging */
- #define NFS_MOUNT_FLAGMASK	0xFFFF
+ #define NFS_MOUNT_UNSHARED	0x8000	/* 5 */
+-#define NFS_MOUNT_FLAGMASK	0xFFFF
++#define NFS_MOUNT_TAGGED	0x10000	/* context tagging */
++#define NFS_MOUNT_FLAGMASK	0x1FFFF
  
  #endif
 diff -NurpP --minimal linux-2.6.22.2/include/linux/nsproxy.h linux-2.6.22.2-vs2.3.0.17/include/linux/nsproxy.h
@@ -11677,11 +11678,11 @@
 --- linux-2.6.22.2/include/linux/sunrpc/clnt.h	2007-07-09 13:20:01 +0200
 +++ linux-2.6.22.2-vs2.3.0.17/include/linux/sunrpc/clnt.h	2007-08-05 20:53:13 +0200
 @@ -43,7 +43,8 @@ struct rpc_clnt {
+ 	unsigned int		cl_softrtry : 1,/* soft timeouts */
+ 				cl_intr     : 1,/* interruptible */
  				cl_discrtry : 1,/* disconnect before retry */
- 				cl_autobind : 1,/* use getport() */
- 				cl_oneshot  : 1,/* dispose after use */
--				cl_dead     : 1;/* abandoned */
-+				cl_dead     : 1,/* abandoned */
+-				cl_autobind : 1;/* use getport() */
++				cl_autobind : 1,/* use getport() */
 +				cl_tag      : 1;/* context tagging */
  
  	struct rpc_rtt *	cl_rtt;		/* RTO estimator data */
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/linux-2.6-vs2.3.patch?r1=1.2.4.6&r2=1.2.4.7&f=u



More information about the pld-cvs-commit mailing list