devfs_vfsops.c (95954) | devfs_vfsops.c (100206) |
---|---|
1/* 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * 7 * This code is derived from software donated to Berkeley by 8 * Jan-Simon Pendry. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kernfs_vfsops.c 8.10 (Berkeley) 5/14/95 32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 33 * | 1/* 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * 7 * This code is derived from software donated to Berkeley by 8 * Jan-Simon Pendry. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * 31 * @(#)kernfs_vfsops.c 8.10 (Berkeley) 5/14/95 32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 33 * |
34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 95954 2002-05-02 20:27:42Z mux $ | 34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 100206 2002-07-17 01:46:48Z dd $ |
35 */ 36 37#include "opt_devfs.h" 38#ifndef NODEVFS 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 43 unchanged lines hidden (view full) --- 86 mp->mnt_data = (qaddr_t) fmp; 87 vfs_getnewfsid(mp); 88 89 fmp->dm_inode = DEVFSINOMOUNT; 90 91 fmp->dm_rootdir = devfs_vmkdir("(root)", 6, NULL); 92 fmp->dm_rootdir->de_inode = 2; 93 fmp->dm_basedir = fmp->dm_rootdir; | 35 */ 36 37#include "opt_devfs.h" 38#ifndef NODEVFS 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 43 unchanged lines hidden (view full) --- 86 mp->mnt_data = (qaddr_t) fmp; 87 vfs_getnewfsid(mp); 88 89 fmp->dm_inode = DEVFSINOMOUNT; 90 91 fmp->dm_rootdir = devfs_vmkdir("(root)", 6, NULL); 92 fmp->dm_rootdir->de_inode = 2; 93 fmp->dm_basedir = fmp->dm_rootdir; |
94 devfs_rules_newmount(fmp, td); |
|
94 95 error = devfs_root(mp, &rvp); 96 if (error) { 97 lockdestroy(&fmp->dm_lock); 98 FREE(fmp, M_DEVFS); 99 return (error); 100 } 101 VOP_UNLOCK(rvp, 0, td); --- 98 unchanged lines hidden --- | 95 96 error = devfs_root(mp, &rvp); 97 if (error) { 98 lockdestroy(&fmp->dm_lock); 99 FREE(fmp, M_DEVFS); 100 return (error); 101 } 102 VOP_UNLOCK(rvp, 0, td); --- 98 unchanged lines hidden --- |