summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-09-21 01:37:35 +0000
committeroster <oster@NetBSD.org>2000-09-21 01:37:35 +0000
commit014e17fbdc8697d6cc0d190793b02e92eea2eeb2 (patch)
tree9cf3ed39dea18990daf396cd5b07a27fdd0ce961 /sys/dev/raidframe
parentcb4931c8e707f8ac92fe0be8b52d8a4ccaef87d6 (diff)
Correct a few calls to VOP_CLOSE().
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_disks.c4
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_disks.c b/sys/dev/raidframe/rf_disks.c
index 4308602f2ff..931c6241ef0 100644
--- a/sys/dev/raidframe/rf_disks.c
+++ b/sys/dev/raidframe/rf_disks.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_disks.c,v 1.32 2000/09/08 01:36:35 oster Exp $ */
+/* $NetBSD: rf_disks.c,v 1.33 2000/09/21 01:37:36 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -569,7 +569,7 @@ rf_AutoConfigureDisks(raidPtr, cfgPtr, auto_config)
while(ac!=NULL) {
if (ac->flag == 0) {
vn_lock(ac->vp, LK_EXCLUSIVE | LK_RETRY);
- VOP_CLOSE(ac->vp, FREAD, NOCRED, 0);
+ VOP_CLOSE(ac->vp, FREAD | FWRITE, NOCRED, 0);
vput(ac->vp);
ac->vp = NULL;
#if DEBUG
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index 850e9f97529..04878e9bad7 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.96 2000/09/08 01:36:36 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.97 2000/09/21 01:37:35 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -2446,7 +2446,7 @@ rf_close_component(raidPtr, vp, auto_configured)
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 @@ if (raidautoconfig) {
/* 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 @@ if (raidautoconfig) {
/* 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);
}
}