1/* 2 * Copyright (c) 1992, 1993, 1994 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 --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95"; 42#endif /* not lint */ 43#endif 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sbin/mount_nfs/mount_nfs.c 230226 2012-01-16 19:34:21Z jh $"); |
46 47#include <sys/param.h> 48#include <sys/linker.h> 49#include <sys/module.h> 50#include <sys/mount.h> 51#include <sys/socket.h> 52#include <sys/stat.h> 53#include <sys/syslog.h> --- 352 unchanged lines hidden (view full) --- 406 build_iovec(&iov, &iovlen, "gssname", gssname, 407 strlen(gssname) + 1); 408 } 409 410 if (!getnfsargs(spec, &iov, &iovlen)) 411 exit(1); 412 413 /* resolve the mountpoint with realpath(3) */ |
414 if (checkpath(name, mntpath) != 0) 415 err(1, "%s", mntpath); |
416 417 build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); 418 build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); 419 build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg)); 420 421 /* 422 * XXX: 423 * Backwards compatibility routines for older kernels. --- 799 unchanged lines hidden --- |