nfs_clvfsops.c (227517) | nfs_clvfsops.c (230249) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993, 1995 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 --- 19 unchanged lines hidden (view full) --- 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 * from nfs_vfsops.c 8.12 (Berkeley) 5/20/95 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993, 1995 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 --- 19 unchanged lines hidden (view full) --- 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 * from nfs_vfsops.c 8.12 (Berkeley) 5/20/95 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clvfsops.c 227517 2011-11-15 01:39:02Z rmacklem $"); | 36__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clvfsops.c 230249 2012-01-17 01:08:01Z mckusick $"); |
37 38 39#include "opt_bootp.h" 40#include "opt_nfsroot.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> --- 1081 unchanged lines hidden (view full) --- 1126 * mount system call 1127 * It seems a bit dumb to copyinstr() the host and path here and then 1128 * bcopy() them in mountnfs(), but I wanted to detect errors before 1129 * doing the sockargs() call because sockargs() allocates an mbuf and 1130 * an error after that means that I have to release the mbuf. 1131 */ 1132/* ARGSUSED */ 1133static int | 37 38 39#include "opt_bootp.h" 40#include "opt_nfsroot.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> --- 1081 unchanged lines hidden (view full) --- 1126 * mount system call 1127 * It seems a bit dumb to copyinstr() the host and path here and then 1128 * bcopy() them in mountnfs(), but I wanted to detect errors before 1129 * doing the sockargs() call because sockargs() allocates an mbuf and 1130 * an error after that means that I have to release the mbuf. 1131 */ 1132/* ARGSUSED */ 1133static int |
1134nfs_cmount(struct mntarg *ma, void *data, int flags) | 1134nfs_cmount(struct mntarg *ma, void *data, uint64_t flags) |
1135{ 1136 int error; 1137 struct nfs_args args; 1138 1139 error = copyin(data, &args, sizeof (struct nfs_args)); 1140 if (error) 1141 return error; 1142 --- 469 unchanged lines hidden --- | 1135{ 1136 int error; 1137 struct nfs_args args; 1138 1139 error = copyin(data, &args, sizeof (struct nfs_args)); 1140 if (error) 1141 return error; 1142 --- 469 unchanged lines hidden --- |