vfs_mount.c (10653) | vfs_mount.c (11921) |
---|---|
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.8 1995/08/30 00:17:18 bde Exp $ | 35 * $Id: vfs_conf.c,v 1.9 1995/09/09 18:10:15 davidg 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 --- 55 unchanged lines hidden (view full) --- 99int 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 */ | 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 --- 55 unchanged lines hidden (view full) --- 99int 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 110 /* 111 * New root mount structure 112 */ 113 mp = malloc((u_long)sizeof(struct mount), M_MOUNT, M_WAITOK); 114 bzero((char *)mp, (u_long)sizeof(struct mount)); 115 mp->mnt_op = mnt_op; --- 60 unchanged lines hidden --- | 107 struct vfsops *mnt_op = (struct vfsops *)data; 108 109 /* 110 * New root mount structure 111 */ 112 mp = malloc((u_long)sizeof(struct mount), M_MOUNT, M_WAITOK); 113 bzero((char *)mp, (u_long)sizeof(struct mount)); 114 mp->mnt_op = mnt_op; --- 60 unchanged lines hidden --- |