patch-2.1.47 linux/fs/nfsd/nfs3proc.c

Next file: linux/fs/nfsd/nfsctl.c
Previous file: linux/fs/nfsd/lockd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.46/linux/fs/nfsd/nfs3proc.c linux/fs/nfsd/nfs3proc.c
@@ -58,7 +58,7 @@
 				SVCFH_INO(&argp->fh));
 
 	resp->fh = argp->fh;
-	nfserr = fh_lookup(rqstp, &resp->fh, 0, MAY_NOP);
+	nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP);
 	RETURN(nfserr);
 }
 
@@ -227,7 +227,7 @@
 	attr   = &argp->attrs;
 
 	/* Get the directory inode */
-	nfserr = fh_lookup(rqstp, dirfhp, S_IFDIR, MAY_CREATE);
+	nfserr = fh_verify(rqstp, dirfhp, S_IFDIR, MAY_CREATE);
 	if (nfserr)
 		RETURN(nfserr);
 
@@ -241,8 +241,7 @@
 
 	/* Now create the file and set attributes */
 	nfserr = nfsd_create(rqstp, dirfhp, argp->name, argp->len,
-				attr, S_IFREG, 0, newfhp,
-				argp->createmode);
+				attr, S_IFREG, 0, newfhp);
 
 	RETURN(nfserr);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov