devfs_vfsops.c (107698) | devfs_vfsops.c (109623) |
---|---|
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 107698 2002-12-09 03:44:28Z rwatson $ | 34 * $FreeBSD: head/sys/fs/devfs/devfs_vfsops.c 109623 2003-01-21 08:56:16Z alfred $ |
35 */ 36 37#include "opt_devfs.h" 38#include "opt_mac.h" 39#ifndef NODEVFS 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 30 unchanged lines hidden (view full) --- 73 error = 0; 74 /* 75 * XXX: flag changes. 76 */ 77 if (mp->mnt_flag & MNT_UPDATE) 78 return (EOPNOTSUPP); 79 80 MALLOC(fmp, struct devfs_mount *, sizeof(struct devfs_mount), | 35 */ 36 37#include "opt_devfs.h" 38#include "opt_mac.h" 39#ifndef NODEVFS 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 30 unchanged lines hidden (view full) --- 73 error = 0; 74 /* 75 * XXX: flag changes. 76 */ 77 if (mp->mnt_flag & MNT_UPDATE) 78 return (EOPNOTSUPP); 79 80 MALLOC(fmp, struct devfs_mount *, sizeof(struct devfs_mount), |
81 M_DEVFS, M_WAITOK | M_ZERO); | 81 M_DEVFS, M_ZERO); |
82 MALLOC(fmp->dm_dirent, struct devfs_dirent **, 83 sizeof(struct devfs_dirent *) * NDEVFSINO, | 82 MALLOC(fmp->dm_dirent, struct devfs_dirent **, 83 sizeof(struct devfs_dirent *) * NDEVFSINO, |
84 M_DEVFS, M_WAITOK | M_ZERO); | 84 M_DEVFS, M_ZERO); |
85 lockinit(&fmp->dm_lock, PVFS, "devfs", 0, LK_NOPAUSE); 86 87 mp->mnt_flag |= MNT_LOCAL; 88#ifdef MAC 89 mp->mnt_flag |= MNT_MULTILABEL; 90#endif 91 fmp->dm_mount = mp; 92 mp->mnt_data = (qaddr_t) fmp; --- 118 unchanged lines hidden --- | 85 lockinit(&fmp->dm_lock, PVFS, "devfs", 0, LK_NOPAUSE); 86 87 mp->mnt_flag |= MNT_LOCAL; 88#ifdef MAC 89 mp->mnt_flag |= MNT_MULTILABEL; 90#endif 91 fmp->dm_mount = mp; 92 mp->mnt_data = (qaddr_t) fmp; --- 118 unchanged lines hidden --- |