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 * Herb Hasler and Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#ifndef lint 38static char copyright[] = 39"@(#) Copyright (c) 1989, 1993\n\ 40 The Regents of the University of California. All rights reserved.\n"; |
41#endif /*not lint*/ |
42 43#ifndef lint |
44/*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/ 45static const char rcsid[] = 46 "$Id$"; 47#endif /*not lint*/ |
48 49#include <sys/param.h> 50#include <sys/file.h> 51#include <sys/ioctl.h> 52#include <sys/mount.h> 53#include <sys/socket.h> 54#include <sys/stat.h> 55#include <sys/syslog.h> --- 176 unchanged lines hidden (view full) --- 232 */ 233int 234main(argc, argv) 235 int argc; 236 char **argv; 237{ 238 SVCXPRT *transp; 239 int c; |
240 struct vfsconf *vfc; |
241 |
242 vfc = getvfsbyname("nfs"); 243 if(!vfc && vfsisloadable("nfs")) { 244 if(vfsload("nfs")) 245 err(1, "vfsload(nfs)"); 246 endvfsent(); /* flush cache */ 247 vfc = getvfsbyname("nfs"); 248 } 249 if(!vfc) { 250 errx(1, "NFS support is not available in the running kernel"); 251 } 252 |
253 while ((c = getopt(argc, argv, "n")) != EOF) 254 switch (c) { 255 case 'n': 256 root_only = 0; 257 break; 258 default: 259 fprintf(stderr, "Usage: mountd [-n] [export_file]\n"); 260 exit(1); --- 1760 unchanged lines hidden --- |