vfs_mount.c (41a93c86d6b90d215c65fc9a74b842eb029153dc) | vfs_mount.c (4590fd3a2a5539b8a1ce2ad488707123c8b7c8c8) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1995 Artisoft, Inc. All Rights Reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)vfs_conf.c 8.8 (Berkeley) 3/31/94 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1995 Artisoft, Inc. All Rights Reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)vfs_conf.c 8.8 (Berkeley) 3/31/94 |
35 * $Id: vfs_conf.c,v 1.7 1995/08/28 09:18:54 julian Exp $ | 35 * $Id: vfs_conf.c,v 1.8 1995/08/30 00:17:18 bde Exp $ |
36 */ 37 38/* 39 * PURPOSE: This file abstracts the root mounting interface from 40 * the per file system semantics for handling mounts, 41 * the overall intent of which is to move the BSD 42 * internals dependence out of the FS code, both to 43 * make the FS code more portable and to free up some --- 12 unchanged lines hidden (view full) --- 56#include <sys/proc.h> /* curproc*/ 57#include <sys/vnode.h> /* NULLVP*/ 58#include <sys/mount.h> /* struct mount*/ 59#include <sys/malloc.h> /* M_MOUNT*/ 60 61/* 62 * GLOBALS 63 */ | 36 */ 37 38/* 39 * PURPOSE: This file abstracts the root mounting interface from 40 * the per file system semantics for handling mounts, 41 * the overall intent of which is to move the BSD 42 * internals dependence out of the FS code, both to 43 * make the FS code more portable and to free up some --- 12 unchanged lines hidden (view full) --- 56#include <sys/proc.h> /* curproc*/ 57#include <sys/vnode.h> /* NULLVP*/ 58#include <sys/mount.h> /* struct mount*/ 59#include <sys/malloc.h> /* M_MOUNT*/ 60 61/* 62 * GLOBALS 63 */ |
64int (*mountroot) __P((caddr_t)); | 64int (*mountroot) __P((void *)); |
65struct vnode *rootvnode; 66struct vfsops *mountrootvfsops; 67 68 69/* 70 * Common root mount code shared by all filesystems 71 */ 72#define ROOTDIR "/" --- 19 unchanged lines hidden (view full) --- 92 * <no locks held> 93 * 94 * NOTES: 95 * This code is currently supported only for use for 96 * the FFS file system type. This is a matter of 97 * fixing the other file systems, not this code! 98 */ 99int | 65struct vnode *rootvnode; 66struct vfsops *mountrootvfsops; 67 68 69/* 70 * Common root mount code shared by all filesystems 71 */ 72#define ROOTDIR "/" --- 19 unchanged lines hidden (view full) --- 92 * <no locks held> 93 * 94 * NOTES: 95 * This code is currently supported only for use for 96 * the FFS file system type. This is a matter of 97 * fixing the other file systems, not this code! 98 */ 99int |
100vfs_mountroot( data) 101caddr_t data; /* file system function table*/ | 100vfs_mountroot(data) 101 void *data; /* file system function table*/ |
102{ 103 struct mount *mp; 104 u_int size; 105 int err = 0; 106 struct proc *p = curproc; /* XXX */ 107 register struct fs *fs; 108 struct vfsops *mnt_op = (struct vfsops *)data; 109 --- 66 unchanged lines hidden --- | 102{ 103 struct mount *mp; 104 u_int size; 105 int err = 0; 106 struct proc *p = curproc; /* XXX */ 107 register struct fs *fs; 108 struct vfsops *mnt_op = (struct vfsops *)data; 109 --- 66 unchanged lines hidden --- |