Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/chs-ubc2]: src/sys/kern Add UBC glue to sys_fhopen() (because it has som...
details: https://anonhg.NetBSD.org/src/rev/5f6609e5f45c
branches: chs-ubc2
changeset: 471354:5f6609e5f45c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jul 02 18:54:10 1999 +0000
description:
Add UBC glue to sys_fhopen() (because it has some vn_open() stuff inline).
diffstat:
sys/kern/vfs_syscalls.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 0d4599b5fdcf -r 5f6609e5f45c sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c Fri Jul 02 18:32:19 1999 +0000
+++ b/sys/kern/vfs_syscalls.c Fri Jul 02 18:54:10 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.c,v 1.133.4.2 1999/07/01 23:43:22 thorpej Exp $ */
+/* $NetBSD: vfs_syscalls.c,v 1.133.4.3 1999/07/02 18:54:10 thorpej Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -1127,6 +1127,11 @@
}
if ((error = VOP_OPEN(vp, flags, cred, p)) != 0)
goto bad;
+ if (vp->v_type == VREG &&
+ uvn_attach(vp, flags & FWRITE ? VM_PROT_WRITE : 0) == NULL) {
+ error = EIO;
+ goto bad;
+ }
if (flags & FWRITE)
vp->v_writecount++;
Home |
Main Index |
Thread Index |
Old Index