mountd.c (2898) | mountd.c (2999) |
---|---|
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"; | 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 | 41#endif /*not lint*/ |
42 43#ifndef lint | 42 43#ifndef lint |
44static char sccsid[] = "@(#)mountd.c 8.8 (Berkeley) 2/20/94"; 45#endif not lint | 44/*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/ 45static const char rcsid[] = 46 "$Id$"; 47#endif /*not lint*/ |
46 47#include <sys/param.h> 48#include <sys/file.h> 49#include <sys/ioctl.h> 50#include <sys/mount.h> 51#include <sys/socket.h> 52#include <sys/stat.h> 53#include <sys/syslog.h> --- 176 unchanged lines hidden (view full) --- 230 */ 231int 232main(argc, argv) 233 int argc; 234 char **argv; 235{ 236 SVCXPRT *transp; 237 int c; | 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; |
|
238 | 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 |
|
239 while ((c = getopt(argc, argv, "n")) != EOF) 240 switch (c) { 241 case 'n': 242 root_only = 0; 243 break; 244 default: 245 fprintf(stderr, "Usage: mountd [-n] [export_file]\n"); 246 exit(1); --- 1760 unchanged lines hidden --- | 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 --- |