diff options
author | alc <alc@FreeBSD.org> | 1999-07-26 06:25:53 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-07-26 06:25:53 +0000 |
commit | 743eeab6387e1bb4e8c0134b6cf783d15d5bf129 (patch) | |
tree | 1c227b00b4f99df82f922790089168cfa562386a /sys/kern/vfs_syscalls.c | |
parent | 922ea3fe71ba55c7293626ade2f2f82545bcbd94 (diff) | |
download | FreeBSD-src-743eeab6387e1bb4e8c0134b6cf783d15d5bf129.zip FreeBSD-src-743eeab6387e1bb4e8c0134b6cf783d15d5bf129.tar.gz |
Add sysctl and support code to allow directories to be VMIO'd. The default
setting for the sysctl is OFF, which is the historical operation.
Submitted by: dillon
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index dd464d7..eeb7c2f 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 - * $Id: vfs_syscalls.c,v 1.122 1999/04/27 11:16:25 phk Exp $ + * $Id: vfs_syscalls.c,v 1.123 1999/04/28 11:37:09 phk Exp $ */ /* For 4.3 integer FS ID compatibility */ @@ -1020,7 +1020,7 @@ open(p, uap) vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p); fp->f_flag |= FHASLOCK; } - if ((vp->v_type == VREG) && (vp->v_object == NULL)) + if (vn_canvmio(vp) == TRUE && vp->v_object == NULL) vfs_object_create(vp, p, p->p_ucred); VOP_UNLOCK(vp, 0, p); p->p_retval[0] = indx; |