Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/dev/raidframe Pullup 1.97 [oster]:
details: https://anonhg.NetBSD.org/src/rev/24e2eff010b5
branches: netbsd-1-5
changeset: 489816:24e2eff010b5
user: tv <tv%NetBSD.org@localhost>
date: Tue Oct 17 20:11:47 2000 +0000
description:
Pullup 1.97 [oster]:
Correct a few calls to VOP_CLOSE().
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e1d116424b12 -r 24e2eff010b5 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Tue Oct 17 20:11:33 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Tue Oct 17 20:11:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.92.2.4 2000/09/08 13:42:51 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.92.2.5 2000/10/17 20:11:47 tv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -2446,7 +2446,7 @@
if (vp != NULL) {
if (auto_configured == 1) {
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
- VOP_CLOSE(vp, FREAD, NOCRED, 0);
+ VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, 0);
vput(vp);
} else {
@@ -2666,7 +2666,7 @@
/* don't need this any more. We'll allocate it again
a little later if we really do... */
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
- VOP_CLOSE(vp, FREAD, NOCRED, 0);
+ VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, 0);
vput(vp);
for (i=0; i < label.d_npartitions; i++) {
@@ -2732,7 +2732,7 @@
/* cleanup */
free(clabel, M_RAIDFRAME);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
- VOP_CLOSE(vp, FREAD, NOCRED, 0);
+ VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, 0);
vput(vp);
}
}
Home |
Main Index |
Thread Index |
Old Index