patch-2.3.99-pre4 linux/fs/nfsd/lockd.c
Next file: linux/fs/nfsd/nfs3xdr.c
Previous file: linux/fs/nfsd/export.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Mon Apr 10 23:02:46 2000
-  Orig file: 
v2.3.99-pre3/linux/fs/nfsd/lockd.c
-  Orig date: 
Fri Mar 10 16:40:48 2000
diff -u --recursive --new-file v2.3.99-pre3/linux/fs/nfsd/lockd.c linux/fs/nfsd/lockd.c
@@ -27,7 +27,8 @@
 
 	/* must initialize before using! but maxsize doesn't matter */
 	fh_init(&fh,0);
-	memcpy((char*)&fh.fh_handle.fh_base, (char*)f, NFS_FHSIZE);
+	fh.fh_handle.fh_size = f->size;
+	memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size);
 	fh.fh_export = NULL;
 
 	nfserr = nfsd_open(rqstp, &fh, S_IFREG, MAY_LOCK, filp);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)