nfs_commonport.c (240289) | nfs_commonport.c (241896) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/fs/nfs/nfs_commonport.c 240289 2012-09-09 21:00:45Z rmacklem $"); | 35__FBSDID("$FreeBSD: head/sys/fs/nfs/nfs_commonport.c 241896 2012-10-22 17:50:54Z kib $"); |
36 37/* 38 * Functions that need to be different for different versions of BSD 39 * kernel should be kept here, along with any global storage specific 40 * to this BSD variant. 41 */ 42#include <fs/nfs/nfsport.h> 43#include <sys/sysctl.h> --- 162 unchanged lines hidden (view full) --- 206/* 207 * Look up a file name. Basically just initialize stuff and call namei(). 208 */ 209int 210nfsrv_lookupfilename(struct nameidata *ndp, char *fname, NFSPROC_T *p) 211{ 212 int error; 213 | 36 37/* 38 * Functions that need to be different for different versions of BSD 39 * kernel should be kept here, along with any global storage specific 40 * to this BSD variant. 41 */ 42#include <fs/nfs/nfsport.h> 43#include <sys/sysctl.h> --- 162 unchanged lines hidden (view full) --- 206/* 207 * Look up a file name. Basically just initialize stuff and call namei(). 208 */ 209int 210nfsrv_lookupfilename(struct nameidata *ndp, char *fname, NFSPROC_T *p) 211{ 212 int error; 213 |
214 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF | MPSAFE, UIO_USERSPACE, fname, | 214 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, fname, |
215 p); 216 error = namei(ndp); 217 if (!error) { 218 NDFREE(ndp, NDF_ONLY_PNBUF); 219 } 220 return (error); 221} 222 --- 406 unchanged lines hidden --- | 215 p); 216 error = namei(ndp); 217 if (!error) { 218 NDFREE(ndp, NDF_ONLY_PNBUF); 219 } 220 return (error); 221} 222 --- 406 unchanged lines hidden --- |