From 014e17fbdc8697d6cc0d190793b02e92eea2eeb2 Mon Sep 17 00:00:00 2001 From: oster Date: Thu, 21 Sep 2000 01:37:35 +0000 Subject: Correct a few calls to VOP_CLOSE(). --- sys/dev/raidframe/rf_disks.c | 4 ++-- sys/dev/raidframe/rf_netbsdkintf.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/dev/raidframe') 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); } } -- cgit