mount_portalfs.c (77042) | mount_portalfs.c (77133) |
---|---|
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 donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44#if 0 45static char sccsid[] = "@(#)mount_portal.c 8.6 (Berkeley) 4/26/95"; 46#endif 47static const char rcsid[] = | 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 donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44#if 0 45static char sccsid[] = "@(#)mount_portal.c 8.6 (Berkeley) 4/26/95"; 46#endif 47static const char rcsid[] = |
48 "$FreeBSD: head/usr.sbin/mount_portalfs/mount_portalfs.c 77042 2001-05-23 14:58:19Z ru $"; | 48 "$FreeBSD: head/usr.sbin/mount_portalfs/mount_portalfs.c 77133 2001-05-24 15:20:11Z ru $"; |
49#endif /* not lint */ 50 51#include <sys/param.h> 52#include <sys/wait.h> 53#include <sys/socket.h> 54#include <sys/un.h> 55#include <sys/stat.h> 56#include <sys/syslog.h> --- 113 unchanged lines hidden (view full) --- 170 (void) umask(um); 171 172 (void) listen(so, 5); 173 174 args.pa_socket = so; 175 sprintf(tag, "portal:%d", getpid()); 176 args.pa_config = tag; 177 | 49#endif /* not lint */ 50 51#include <sys/param.h> 52#include <sys/wait.h> 53#include <sys/socket.h> 54#include <sys/un.h> 55#include <sys/stat.h> 56#include <sys/syslog.h> --- 113 unchanged lines hidden (view full) --- 170 (void) umask(um); 171 172 (void) listen(so, 5); 173 174 args.pa_socket = so; 175 sprintf(tag, "portal:%d", getpid()); 176 args.pa_config = tag; 177 |
178 error = getvfsbyname("portal", &vfc); 179 if (error && vfsisloadable("portal")) { 180 if (vfsload("portal")) 181 err(EX_OSERR, "vfsload(portal)"); | 178 error = getvfsbyname("portalfs", &vfc); 179 if (error && vfsisloadable("portalfs")) { 180 if (vfsload("portalfs")) 181 err(EX_OSERR, "vfsload(portalfs)"); |
182 endvfsent(); | 182 endvfsent(); |
183 error = getvfsbyname("portal", &vfc); | 183 error = getvfsbyname("portalfs", &vfc); |
184 } 185 if (error) 186 errx(EX_OSERR, "portal filesystem is not available"); 187 188 rc = mount(vfc.vfc_name, mountpt, mntflags, &args); 189 if (rc < 0) 190 err(1, NULL); 191 --- 104 unchanged lines hidden --- | 184 } 185 if (error) 186 errx(EX_OSERR, "portal filesystem is not available"); 187 188 rc = mount(vfc.vfc_name, mountpt, mntflags, &args); 189 if (rc < 0) 190 err(1, NULL); 191 --- 104 unchanged lines hidden --- |