fdesc_vfsops.c (101308) | fdesc_vfsops.c (109623) |
---|---|
1/* 2 * Copyright (c) 1992, 1993, 1995 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 --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 37 * | 1/* 2 * Copyright (c) 1992, 1993, 1995 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 --- 21 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 37 * |
38 * $FreeBSD: head/sys/fs/fdescfs/fdesc_vfsops.c 101308 2002-08-04 10:29:36Z jeff $ | 38 * $FreeBSD: head/sys/fs/fdescfs/fdesc_vfsops.c 109623 2003-01-21 08:56:16Z alfred $ |
39 */ 40 41/* 42 * /dev/fd Filesystem 43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 37 unchanged lines hidden (view full) --- 84 if (mp->mnt_flag & MNT_UPDATE) 85 return (EOPNOTSUPP); 86 87 error = fdesc_allocvp(Froot, FD_ROOT, mp, &rvp, td); 88 if (error) 89 return (error); 90 91 MALLOC(fmp, struct fdescmount *, sizeof(struct fdescmount), | 39 */ 40 41/* 42 * /dev/fd Filesystem 43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 37 unchanged lines hidden (view full) --- 84 if (mp->mnt_flag & MNT_UPDATE) 85 return (EOPNOTSUPP); 86 87 error = fdesc_allocvp(Froot, FD_ROOT, mp, &rvp, td); 88 if (error) 89 return (error); 90 91 MALLOC(fmp, struct fdescmount *, sizeof(struct fdescmount), |
92 M_FDESCMNT, M_WAITOK); /* XXX */ | 92 M_FDESCMNT, 0); /* XXX */ |
93 rvp->v_type = VDIR; 94 rvp->v_vflag |= VV_ROOT; 95 fmp->f_root = rvp; 96 /* XXX -- don't mark as local to work around fts() problems */ 97 /*mp->mnt_flag |= MNT_LOCAL;*/ 98 mp->mnt_data = (qaddr_t) fmp; 99 vfs_getnewfsid(mp); 100 --- 127 unchanged lines hidden --- | 93 rvp->v_type = VDIR; 94 rvp->v_vflag |= VV_ROOT; 95 fmp->f_root = rvp; 96 /* XXX -- don't mark as local to work around fts() problems */ 97 /*mp->mnt_flag |= MNT_LOCAL;*/ 98 mp->mnt_data = (qaddr_t) fmp; 99 vfs_getnewfsid(mp); 100 --- 127 unchanged lines hidden --- |